Hi Peter, you wrote in part:
> How would I embed Maxima in another Lisp program?
Here are some random notes about that.
- To see the Lisp representation of a Maxima expression,
type the expression at the prompt (say at %i99), and then
:lisp $%i99
to see it. Likewise ``:lisp $%o99'' shows the representation
of %o99 (usually different from %i99). I believe this might
help you see how to construct arguments for Maxima functions.
- By the way, ``(displa $foo)'' (note the absence of ``y'')
prints $foo in Maxima notation.
- There are at least 3 kinds of function calls you might want
to execute: defined by defmfun (evaluates its arguments),
defmspec (quotes its arguments), and defined by ``:=''
(user functions, evaluates its arguments). Each type is
called in a different way. However, I believe
(meval '(($foo) x y z))
does the right thing for any type of function definition.
- There is some description of Lisp/Maxima interactions in
maxima/doc/info/Help.texi under the heading "Lisp and Maxima";
``? lisp and maxima'' or ``describe ("lisp and maxima")'' should
show it. That text was recently revised (January 2005);
I recommend you ignore any older version. Actually, I will be
indebted to you if you would take a look at "Lisp and Maxima"
and let me know what it's lacking from your point of view.
I'll let that be all for now. Hope this helps,
Robert Dodier
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250