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:

Args

Function: args (<expr>) Returns the list of arguments of expr, which may be any kind of expression other than an atom. Only the arguments of the top-level operator are extracted; subexpressions of expr appear as elements or subexpressions of elements of the list of arguments.

expr: x . dx . dy + z . dy . dz + y . dx . dz;
expr2: x . [dx, dy] + z . [dy, dz] + y . [dx, dz];
expr3: x * [dx, dy] + z * [dy, dz] + y * [dx, dz];
expr4: [x, dx, dy] + [z, dy, dz] + [y, dx, dz];
expr5: [[x, dx, dy], [z, dy, dz], [y, dx, dz]];
expr6: x . del(x) . del(y) + z . del(y) . del(z) + y . del(x) . del(z);
part(expr, 1);
length(expr);
op(expr);
args(expr);
map(op, args(expr));
map(args, args(expr));
map(args, args(expr6));
diffform(vars, expr) := block(    [n, k],    0);
diff(x + y);

The order of the items in the list may depend on the global flag inflag.

args (<expr>) is equivalent to substpart ("[", <expr>, 0). See also substpart, and op.

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

(%o1)                                true
(%i2) 

Related Examples

args-disp-do-if-length-load-sum
draw_graph(h,show_id=true,show_weight=true);

load(graphs);

h1:[[[1,2],4],[[2,3],...

h:create_graph([[1,"a...

Calculate

args-divisors-lreduce-matrix-subst

s: divisors(1/8);

lreduce ("+", args(s...

divisors (a);

Calculate

args-determinant-expand-factor-ident-invert-matrix-solve-transpose

A:matrix([4,-5,2],[5,...

B:A-t*ident(3);

C:determinant(B);

Calculate

args-do-map-op-print

list:[1,3,5,17];

i:0;

thru length(list) do ...

Calculate

args-block-create_list-denom-divide-length-rhs

factorC(_f,_z):=block...

partfracC(_f,_z):=blo...

partfracC(1/(x^2-1)^4...

Calculate

args-block-del-length-map-op-part

expr: x . dx . dy + z...

expr2: x . [dx, dy] +...

expr3: x * [dx, dy] +...

Calculate

args-expand-op-sqrt

eq: (a+sqrt(2)*b)*u10...

args(eq);

op(eq);

Calculate