### The Maxima on-line user's manual

Algebra Calculator

#### Demoivre

Function: demoivre (<expr>) -- Option variable: demoivre The 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.

```(%o1)                                true
(%i2) ```

### Related Examples

##### demoivre

z1: 2+3*%i;

z2 : -1 -5*%i;

demoivre(z1 / z2);

Calculate

##### demoivre-matrix-true

aa : matrix([a,b],[c,...

demoivre: true;

matrixexp(aa);

Calculate

demoivre;

%e^(%i*w);

expr:%e^(%i*w);

Calculate

w:1+%i*sqrt(2);

z:polarform(w);

demoivre(z);

Calculate

##### demoivre-true

"check the value of t...

demoivre;

%e^(%i*w);

Calculate

w:1+%i*sqrt(2);

z:polarform(w);

demoivre(z);

Calculate

##### demoivre-exp-polarform

z : 4 *exp(%i *5);

polarform(z);

demoivre(z);

Calculate

demoivre;

%e^(%i*w);

expr:%e^(%i*w);

Calculate

##### demoivre

demoivre (((a^2)*(b^2...

Calculate

##### demoivre

eq1:(70.71 * 65 + 81....

demoivre (eq1);

Calculate