Subject: Help to get started with the code of Maxima
From: Leo Butler
Date: Tue, 25 Jun 2013 02:59:01 GMT
>From mailnull Tue Jun 25 01:09:11 2013
Thanks for the explanations,
So I guess (meval '(($DIFF SIMP) ((%SIN SIMP) $X) $X) ) should enable me to
access to the symbolic maths functions from Common Lisp? Unfortunately
meval is not recognized, even after I compile and load maxima into my SBCL
repl. Am I missing something?
Probably you are missing
(in-package :maxima)
When you are in the maxima package, it works:
MAXIMA> (meval '(($DIFF SIMP) ((%SIN SIMP) $X) $X))
((%COS SIMP) $X)
Note that there is a reader macro that lets you use the Maxima parser from CL:
MAXIMA> #$ diff(sin(x),x); #$
((%COS SIMP) $X)
You may find previous discussions on using slime and Maxima useful:
http://www.math.utexas.edu/pipermail/maxima/2011/026609.html
Leo