Ask Your Question
3

Convert exponential form to hyperbolic functions

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

TobiasD gravatar image

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

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
2

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

Emmanuel Charpentier gravatar image

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

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

Stats

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

Seen: 43 times

Last updated: Nov 17