Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Put Calculator

Put

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

foo: aa;
 bar: bb;
 baz: cc;
 put (foo, bar, baz);
 properties (aa);
 get (aa, cc);
 qput (foo, bar, baz);
 properties (foo);
 get (

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

There are also some inexact matches for put. Try ?? put to see them.

(%o1)                                true
(%i2) 

Put Example

Related Examples