Subject: Q: replace a function with simplifying function
From: Barton Willis
Date: Sun, 2 Oct 2005 09:05:43 -0500
----Donna and Dan Stanger wrote: -----
>How about tellsimpafter?
>
>Barton Willis wrote:
>
>> How can I replace a Maxima function, defined using defmfun,
>> with a simplifying version of the function?
Dan,
Thanks for the suggestion -- most likely I'd need to use
'tellsimp.' After reading your message, I thought of an
alternative:
(defun $max (&rest e)
(simp-max `(($max) ,@e) nil nil))
(defun $min (&rest e)
(simp-min `(($min) ,@e) nil nil))
It seems that this works OK. The old max and min
functions can be recovered by loading 'compar.lisp.'
Barton