puireduc SciMax Toolbox qput

SciMax Toolbox >> put

put

Maxima Function

Calling Sequence

put (atom, value, indicator)

Description

Assigns value to the property (specified by indicator) of atom. indicator may be the name of any property, not just a system-defined property.

put evaluates its arguments. put returns value.

Examples:

(%i1) put (foo, (a+b)^5, expr);
                                   5
(%o1)                       (b + a)
(%i2) put (foo, "Hello", str);
(%o2)                         Hello
(%i3) properties (foo);
(%o3)            [[user properties, str, expr]]
(%i4) get (foo, expr);
                                   5
(%o4)                       (b + a)
(%i5) get (foo, str);
(%o5)                         Hello
puireduc SciMax Toolbox qput