powered by
mexp calculates exp(t*x) for the square matrix, x, by spectral decomposition or series expansion.
mexp
exp(t*x)
x
mexp(x, t=1, type="spectral decomposition", n=20, k=3)
mexp returns the exponential of a matrix.
A square matrix.
Constant multiplying the matrix.
Algorithm used: spectral decomposition or series approximation.
Number of terms in the series expansion.
Constant divisor to avoid over- or underflow (series approximation only).
J.K. Lindsey
x <- matrix(c(1,2,3,4),nrow=2) mexp(x)
Run the code above in your browser using DataLab