Hi all,
> The demoivre function only looks for *complex* exponentials.
Ok, I was not aware of this. I thought these two commands are able
to convert any type of trigonometric and hyperbolic functions from/into
the exponential representation. (But now I see its documented ...)
> If you want to convert real exponentials to hyperbolic functions, there are two approaches
> I can think of:
> Try something like this:
>
> (%i11) mydemoivre(e) := subst("^" = lambda([a,b], if a = %e then
> cosh(b) + sinh(b) else a^b),demoivre(e))$
Thanks, this does a good job for my examples.
I'm working with matrix exponentials of 2 by 2 matrices. There is this nice
symbolic result with sinh and cosh inside and I tried to obtain.
For one special case, it works very well. In the general case it
works to, but only together with many transformations by various
simplification commands.
Anyway, it would be nice to see such a command for recombinig
hyperbolics in maxima. (Of course it should be as general as
possible.)
For the interested I attached two batch files. Do with them whatever you like.
May be they could be used somewhere as examples for some non trivial calculations ...
-- Raoul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mat_exp_gen.mac
Type: application/octet-stream
Size: 782 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20100417/1d874e87/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mat_exp_sym.mac
Type: application/octet-stream
Size: 421 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20100417/1d874e87/attachment-0001.obj>