Subject: passing "ratexpand" as a functional parameter
From: Viktor T. Toth
Date: Mon, 11 Jul 2005 08:51:20 -0400
Is this what you are looking for?
(%i2) f(x,y):=x(y);
(%o2) f(x, y) := x(y)
(%i3) f(sqrt,u^2);
(%o3) abs(u)
(%i4) f(ratexpand,u);
x evaluates to false
Improper name or value in functional position.
#0: f(x=false,y=u)
-- an error. Quitting. To debug this try debugmode(true);
(%i5) f('ratexpand,u);
(%o5) u
(%i6) u^2+(u+v)^2;
2 2
(%o6) (v + u) + u
(%i7) f('ratexpand,%);
2 2
(%o7) v + 2 u v + 2 u
Viktor
-----Original Message-----
From: maxima-admin@math.utexas.edu [mailto:maxima-admin at math] On
Behalf Of Fabrizio Caruso
Sent: Monday, July 11, 2005 8:24 AM
To: maxima@math.utexas.edu
Subject: passing "ratexpand" as a functional parameter
Hi!
How can I pass ratexpand as a functional parameter?
If I just pass ratexpand it will evaluate it to "FALSE"
because it is also a switch.
If I pass "ratexpand" (with quotes) it won't work, either.
Regards
Fabrizio
_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima