Ask for the syntax of representing operators in Common-Lisp
Subject: Ask for the syntax of representing operators in Common-Lisp
From: Daniel Lakeland
Date: Tue, 11 Jul 2006 17:22:36 -0700
On Mon, Jul 10, 2006 at 03:06:49PM -0700, Richard Fateman wrote:
> The original question suggests to me that that Nguyen Huong doesn't know
> Lisp, or doesn't quite know what "parse" means. The expression internal to
> Maxima is already parsed. The file output could be read in by the lisp
> "read" function to reconstitute the parsed tree version. The internal
> version could also be translated into conventional Lisp, and then compiled
> into assembly language. The commands translate and compile do that.
I can't quite figure out how to get the output of an expression as a
lisp expression that I could copy and paste into my own
code... translate seems to do something internal, which isn't useful
if you want to use maxima to generate results that you want to include
in a program where maxima will not be available.
I bet it's possible though. Anyone have a suggestion how I could get
the following sort of thing to work??
myexp: taylor(sqrt(a+b*x+c*x^2 / (1+x^3)),x,0,4);
myfun(a,b,c,x) := ev(myexp,a=a,b=b,c=c,x=x);
... now how do I get myfun as a lisp lambda expression??
Thanks much!
--
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan