Ask Your Question

Convert exponential form to hyperbolic functions

asked 2017-11-16 06:49:23 -0500

TobiasD gravatar image

updated 2017-11-17 05:55:25 -0500

tmonteil gravatar image

Is there a method to convert expression containing exponentials like (e^a + e^-a) / 2 to hyperbolic functions? I tried to even call maxima functions directly, but thinks like cosh(a)._maxima_().exponentialize().demoivre() still don't give me cosh(a) back but instead return the form in exponentials.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-11-17 04:38:13 -0500

Emmanuel Charpentier gravatar image

updated 2017-11-17 06:43:53 -0500

That's a {{{Maxima}}} bug :

sage: [(t,t(x)._maxima_().exponentialize().demoivre().sage()) for t in [sin,cos,
....: tan,sinh,cosh,tanh]]

[(sin, sin(x)),
 (cos, cos(x)),
 (tan, sin(x)/cos(x)),
 (sinh, -1/2*e^(-x) + 1/2*e^x),
 (cosh, 1/2*e^(-x) + 1/2*e^x),
 (tanh, -(e^(-x) - e^x)/(e^(-x) + e^x))]

The same is still present in 5.40.0 (as packaged by Debian).

This is now Trac#24231, also reported as Maxima's bug #3358

Thanks for reporting !

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-11-16 06:49:23 -0500

Seen: 212 times

Last updated: Nov 17 '17