How do I retrieve binding powers in a Maxima function definition?
Subject: How do I retrieve binding powers in a Maxima function definition?
From: Barton Willis
Date: Mon, 31 Oct 2011 05:06:07 -0500
To retrieve a binding power, try something like
(%i11) ?rbp(?getopr0("+"));
(%o11) 100
(%i12) ?rbp(?getopr0("*"));
(%o12) 120
But ?rbp(?getopr0("+")) gives the right binding power of mplus, not as you asked $+.
For assignment, maybe something similar would work, but maybe you should consider writing
this part of your code in Common Lisp.
--Barton
-----maxima-bounces at math.utexas.edu wrote: -----
To: maxima at math.utexas.edu
From: David R Stoutemyer
Sent by: maxima-bounces at math.utexas.edu
Date: 10/31/2011 02:42AM
Subject: How do I retrieve binding powers in a Maxima function definition?
:lisp (get ?'$+ ?'rbp) ?returns the right binding power of the "+" operator, but it appears that I can use ":lisp" only at the top level.
How do I retrieve and assign a right binding power to a local variable in a Maxima function definition?
?? -- David Stoutemyer
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima