Ask Your Question
3

Convert exponential form to hyperbolic functions

asked 7 years ago

TobiasD gravatar image

updated 0 years ago

FrédéricC 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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

Emmanuel Charpentier gravatar image

updated 7 years ago

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 !

Preview: (hide)
link

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: 7 years ago

Seen: 1,728 times

Last updated: Nov 17 '17