On 2013-01-10, Leo Butler <l_butler at users.sourceforge.net> wrote:
> What I have done is simple(-minded): I extract the listofvars from the
> expression, subst gensyms in place, create a function which
> mode_declares the variables to be flonums and then compile that
> function using the Maxima compile command.
>
> I wonder if someone has suggestions on how to improve this,
> speed-wise. The expressions in question involve the 'elementary'
> functions and their compositions, say.
That sounds entirely reasonable. It would also be reasonable to use
GENTRAN or f90 or something like that to generate non-Lisp code.
The Maxima-to-Lisp translator isn't too sophisticated (and it has more
than a few bugs). If you find better ways to translate some expressions,
by all means, please go ahead and fix up the translator.
best
Robert Dodier