mandag, juni 15, 2009

Calling maxima from sbcl

Ok, so here is what you need to do:
Get the source to maxima and extract to your favourite location.
Run ./configure --enable -sbcl; make to compile all the lisp-files we'll need to fasl-files.
Load something similar to this: http://folk.ntnu.no/knutgj/maximatest.lisp

torsdag, juni 11, 2009

Installing imaxima on MacOSX

First install Aquamacs emacs by normal .dmg
and tex (e.g. by normal MacTex .dmg install),
then install macports by easy .pkg,
then install sbcl and slime through macports: sudo port sbcl slime,
then install gnuplot through macports: sudo port gnuplot,
then install breqn pakage: download breqn097a.zip and put contents into /usr/local/texlive/texmf-local/tex/latex/breqn. Run sudo mktexlsr and (optional) test with kpsewhich breqn.sty.
Then download imaxima-imath-1.0.tar.gz, cd into folder and ./configure --prefix=/sw; make; sudo make install (optional: make clean to cleanup).
Finally copy necessary (all?) files from /opt/local/share/maxima/5.18.1/emacs to ~/Library/Application Support/Aquamacs Emacs and edit line 1207 in imaxima.el where it says (split-string to (list.
Open Aquamacs and M-x imaxima to enjoy symbolic math in lisp ftw!