Opened 4 years ago

Last modified 4 years ago

#24231 new defect

Maxima's demoivre() doesn't work with hyperbolic functions.

Reported by: charpent Owned by:
Priority: major Milestone: sage-8.1
Component: symbolics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Reported upstream. No feedback yet. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by tmonteil)

A nice one :

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))]

This is a Maxima problem :

(%i5) map(lambda([t],[t,demoivre(exponentialize(t(x)))]),[sin,cos,tan,sinh,cosh,tanh]);

(%o5) [[sin,sin(x)],[cos,cos(x)],[tan,sin(x)/cos(x)],[sinh,(%e^x-%e^-x)/2],

One also notes that sin(x)/cos(x) is not simplified in tan(x).

Reported on this ask question.

Change History (4)

comment:1 Changed 4 years ago by tmonteil

  • Description modified (diff)

comment:2 Changed 4 years ago by tmonteil

  • Component changed from PLEASE CHANGE to symbolics

comment:3 Changed 4 years ago by tmonteil

Note that symbolic issues are collected on this wiki page.

comment:4 Changed 4 years ago by charpent

  • Report Upstream changed from Not yet reported upstream; Will do shortly. to Reported upstream. No feedback yet.

This has been reported as Maxima's bug #3358.

Note: See TracTickets for help on using tickets.