Re: 'demoivre' not quite up to Wolfram's 'ExpToTrig' ?
Raymond Toy <[email protected]> Sat, 2 May 2026 19:44:14 -0700
| Newsgroups | gmane.comp.mathematics.maxima.general |
|---|---|
| Message-ID | <[email protected]> |
On 5/2/26 6:05 PM, Henry Baker wrote: > I'm trying to 'undo' exponentialize on sinh(x), cosh(x), etc. > > While demoivre(exp) works on sin(x), cos(x), it doesn't work on sinh(x), cosh(x). > > But you can trick demoivre by substituting x=%i*y, do demoivre, and then substitute back y=x/%i. > > Why isn't 'demoivre' smart enough to do this itself ? This is what I used to do, but try out Barton’s excellent |function_convert|. You have to get it from https://github.com/barton-willis/function_convert. Then: |(%i17) exponentialize(sinh(x)); x - x %e - %e (%o17) ─────────── 2 (%i18) function_convert(exp=hyperbolic, %o17); x = - x - x x = - %e x - x x = %e - %e x = sinh(x) (%o18) sinh(x) | Not sure why there’s extra output. Use |list_converters()| to see what conversions it can do. > _______________________________________________ > Maxima-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/maxima-discuss ​ _______________________________________________ Maxima-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maxima-discuss