MATLAB Function Reference Previous page   Next Page
expm

Matrix exponential

Syntax

Description

Y = expm(X) raises the constant to the matrix power X. The expm function produces complex results if X has nonpositive eigenvalues.

Use exp for the element-by-element exponential.

Algorithm

expm is a built-in function that uses the Padé approximation with scaling and squaring. You can see the coding of this algorithm in the expm1 demo.

Examples

This example computes and compares the matrix exponential of A and the exponential of A.

Notice that the diagonal elements of the two results are equal. This would be true for any triangular matrix. But the off-diagonal elements, including those below the diagonal, are different.

See Also

exp, funm, logm, sqrtm

References

[1]  Golub, G. H. and C. F. Van Loan, Matrix Computation, p. 384, Johns Hopkins University Press, 1983.

[2]  Moler, C. B. and C. F. Van Loan, "Nineteen Dubious Ways to Compute the Exponential of a Matrix," SIAM Review 20, 1979, pp. 801-836.


Previous page  expint expm1 Next page

© 1994-2005 The MathWorks, Inc.