Opened 2 years ago

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

Reported by: Owned by: charpent major sage-8.1 symbolics Reported upstream. No feedback yet.

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],
[cosh,(%e^x+%e^-x)/2],[tanh,(%e^x-%e^-x)/(%e^x+%e^-x)]]
```

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

### comment:1 Changed 2 years ago by tmonteil

• Description modified (diff)

### comment:2 Changed 2 years ago by tmonteil

• Component changed from PLEASE CHANGE to symbolics

### comment:3 Changed 2 years ago by tmonteil

Note that symbolic issues are collected on this wiki page.

### comment:4 Changed 2 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.