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

Algebra Calculator

#### Domxexpt

-- Option variable: domxexpt Default value: `true`

When `domxexpt` is `true`, a matrix exponential, `exp (<M>)` where <M> is a matrix, is interpreted as a matrix with element `[i,j` equal to `exp (m[i,j])`. Otherwise `exp (<M>)` evaluates to `exp (<ev(M)>`.

`domxexpt` affects all expressions of the form `<base>^<power>` where <base> is an expression assumed scalar or constant, and <power> is a list or matrix.

Example:

```          (%i1) m: matrix ([1, %i], [a+b, %pi]);
[   1    %i  ]
(%o1)                    [            ]
[ b + a  %pi ]
(%i2) domxexpt: false\$
(%i3) (1 - c)^m;
[   1    %i  ]
[            ]
[ b + a  %pi ]
(%o3)                 (1 - c)
(%i4) domxexpt: true\$
(%i5) (1 - c)^m;
[                      %i  ]
[    1 - c      (1 - c)    ]
(%o5)             [                          ]
[        b + a         %pi ]
[ (1 - c)       (1 - c)    ]```

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

### Related Examples

##### domxexpt-matrix-true

A: matrix ([0, 1], [ ...

At = A*dt;

domxexpt: true;

Calculate

##### domxexpt-matrix-true

A: matrix ([0, 1], [ ...

At = A*dt;

domxexpt: true;

Calculate

? domxexpt;

Calculate

##### domxexpt-false-matrix

A: matrix ([0, 1], [ ...

At = A*dt;

domxexpt: false;

Calculate

##### domxexpt-matrix-true

M: matrix ([-(lambda+...

domxexpt: true;

exp(M);

Calculate

##### domxexpt-false-matrix-true

M: matrix ([-(lambda+...

domxexpt: true;

exp(M);

Calculate

##### domxexpt-false-matrix-true

m: matrix ([1, %i], [...

domxexpt: false;

(1 - c)^m;

Calculate

##### domxexpt-matrix-true

A: matrix ([0, 1, 0],...

domxexpt: true;

exp(A);

Calculate

? domxexpt;

Calculate

##### domxexpt-matrix-true

matrix ([1, 0], [0, 0]);

domxexpt: true;

Calculate