expm - square matrix exponential
X is a square matrix expm(X) is the matrix
expm(X) = I + X + X^2 /2 + ...
The computation is performed by first block-diagonalizing X and then applying a Pade approximation on each block.
X=[1 2;3 4] expm(X) logm(expm(X))