More work on the functions for the complex components



Am Dienstag, den 05.05.2009, 20:30 +0200 schrieb Dieter Kaiser:

> 2. Change standard behavior of rectform
> 
> Maxima assumes that all unknown functions are real valued. See the bug report
> ID: 1238141 "realpart(f(x+%i*y))".

By the way. The second extension also improves the function carg too.
For a function we would get:

(%i17) carg(f(z));
(%o17) atan2(imagpart(f(z)),realpart(f(z)))

For a complex symbol we already have:

(%i20) carg(z);
(%o20) carg(z)

Perhaps this should simplify to atan2(imagpart(z),realpart(z)) too?

And for a function like sin which risplit knows to handle we get:
 
(%i18) carg(sin(x));
(%o18) atan2(0,sin(x))

(%i19) carg(sin(z));
(%o19) atan2(sinh(imagpart(z))*cos(realpart(z)),
             cosh(imagpart(z))*sin(realpart(z)))

Dieter Kaiser