Maxima Function
demoivre (expr)
demoivreThe function demoivre (expr) converts one expression
without setting the global variable demoivre.
When the variable demoivre is true,
complex exponentials are converted into equivalent expressions in terms of circular functions:
exp (a + b*%i) simplifies to %e^a * (cos(b) + %i*sin(b))
if b is free of %i.
a and b are not expanded.
The default value of demoivre is false.
exponentialize converts circular and hyperbolic functions to exponential form.
demoivre and exponentialize cannot
both be true at the same time.