[Maxima] Fully simplifiying Exp function
DrDieterKaiser at web.de
Tue Jan 6 04:05:36 CST 2009
thank you very much for your comment.
I was focussed on the implementation of the $function like it was done
for the Bessel functions. There we have a resimplify. In this case the
resimplify was necessary, because the $function was directly called by
the Maxima simplifier. But when we have a fully implemented function
with noun/verb/alias the $function is no longer called by the simplifier.
The noun/verb/alias property has been recently added to the Bessel functions.
The $function can now be used as proposed for a Lisp call to the simplifier.
The resimplify is no longer needed. And we can implement the $function like:
(defun $exp (x)
(simplify (list '(%exp) x))).
Thus the $function can be used as a shortform for a call to the simplifier
from Lisp code. Perhaps it is a nice convention to support the $function for
functions with noun/verb/alias in this way to have a readable form for a call
to the simplifier.
Your comment helped me to see this point much better. I will have again a look at
the code to prove the implemented $functions.
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
More information about the Maxima