[Maxima] How do I get define to recurse?

Stavros Macrakis macrakis at alum.mit.edu
Sun Jun 4 13:01:45 CDT 2006


------=_Part_24363_2684184.1149444105207
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

> (%i1) declare(f, multiplicative);
> (%i2) declare(f, additive);
> (%i5) f(a*b +c);
> (%o5)                            f(c) + f(a b)


This is a bug which should be fixed in the next release.  In the meantime,
you can do

           expand( ... , 0, 0)

which resimplifies the expression without expanding it.

------=_Part_24363_2684184.1149444105207
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(%i1) declare(f, multiplicative);<br>(%i2) declare(f, additive);<br>(%i5) f(a*b +c);
<br>(%o5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f(c) + f(a b)</blockquote><div><br>This is a bug which should be fixed in the next release.&nbsp; In the meantime, you can do<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expand( ... , 0, 0)<br><br>which resimplifies the expression without expanding it.
<br></div></div><br>

------=_Part_24363_2684184.1149444105207--




More information about the Maxima mailing list