FUNCTION REFERENCE
expm
Matrix exponential.
Matrix exponential.
Syntax
Y = expm(A)Pade approximation with scaling and squaring. A must be square.
This is not the elementwise exp.
Example
expm([1 2; 3 4]) % [51.969 74.737; 112.105 164.074]Differences from MATLAB: complex input is supported (results can
differ in the last digit). A non-square complex A gives 'Expected input to be a square matrix.'
MatRust also accepts logical input.
MatRust does not balance A first: badly scaled matrices can lose accuracy.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.