novice: maxima - lisp



>>>>> "Bernd" == Bernd Schmitt  writes:

[snip]

    Bernd> (PROGN
    Bernd>    (DEFPROP $FUN T TRANSLATED)
    Bernd>    (ADD2LNC '$FUN $PROPS)
    Bernd>    (DEFMTRFUN ($FUN $ANY MDEFINE NIL NIL) ($X) (DECLARE (SPECIAL $X))
    Bernd>        (ADD* 1 $X)))
    Bernd> (SIMPLIFY (MFUNCTION-CALL $QUIT))

    Bernd> 3) i started clisp (i tried gcl as well - same error):

Of course, this is expected if you're using a standard clisp or gcl.
For this to work, you need to have a significant portion of maxima
around.  At the very least defprop, add2lnc, and defmtrfun, and all of
their dependencies.

Is the translated thing a function that computes some numerical
result?  If so, you might be able to convert it to Fortran, which
maxima can do, and link that to your C code.  Or hand-convert the
Fortran to C.  Of course if the computation requires lots of maxima
functions, like integration and such, this might not work so well
either.

Do you have an example of what kind of functions you might be
converting?

Ray