How to use maxima as a lisp library?



Robert Gloeckner wrote:
> 
> I will try to clearify what i would like to do.
> Till now i am doing the symbolic part of mathematical calculations in
> maxima and then use infix->prefix macro to use the equations in my lisp
> application (3d percolation, crystallization of polymers).
> I would like to integrate maxima into my application more direct, like a
> library - not the other way round (calling my lisp-code from maxima),
> because I somehow rely on slime to write lisp.

You can use slime with maxima.  I haven't tried this in quite a while, 
but it did work, more or less.  I recall have some problems with it, though.

I don't remember who did this, but I think it's on the maxima mailing 
list somewhere.  Basically, add the following to your maxima-init.lisp:

(pushnew "<path to where slime is>" asdf:*central-registry*)

(defun maxima-start-swank ()
   "Start Slime's SWANK server.  It will print out the port number.
In (x)emacs, do M-x slime-connect with the correct host and port number, 
and you'll have slime running maxima."
   (asdf:oos 'asdf:load-op :swank)
   (funcall (find-symbol "CREATE-SWANK-SERVER" "SWANK")))

Ray