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:

Get Calculator

Get

Function: get (<a>, <i>) Retrieves the user property indicated by <i> associated with atom <a> or returns false if a doesnt have property <i>.

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

get evaluates its arguments.

          (%i1) put (%e, transcendental, type);
          (%o1)                    transcendental
          (%i2) put (%pi, transcendental, type)$
          (%i3) put (%i, algebraic, type)$
          (%i4) typeof (expr) := block ([q],
                  if numberp (expr)
                  then return (algebraic),
                  if not atom (expr)
                  then return (maplist (typeof, expr)),
                  q: get (expr, type),
                  if q=false
                  then errcatch (error(expr,"is not numeric.")) else q)$
          (%i5) typeof (2*%e + x*%pi);
          x is not numeric.
          (%o5)  [[transcendental, []], [algebraic, transcendental]]
          (%i6) typeof (2*%e + %pi);
          (%o6)     [transcendental, [algebraic, transcendental]]

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

(%o1)                                true
(%i2) 

Get Example

Related Examples

get-properties-put-qput

foo: aa;

bar: bb;

baz: cc;

Calculate

get-properties-put-qput

foo: aa;

bar: bb;

baz: cc;

Calculate