So Wikipedia says this, which makes sense:
But Wolfram computed this:
Is this a bug or am I just extremely tired?
So Wikipedia says this, which makes sense:
But Wolfram computed this:
Is this a bug or am I just extremely tired?
On
In Mathematica:
MatrixExp[{{2, 0, 0, 0}, {0, 3, 0, 0}, {0, 0, 4, 0}, {0, 0, 0, 5}}]
(* {{E^2, 0, 0, 0}, {0, E^3, 0, 0}, {0, 0, E^4, 0}, {0, 0, 0, E^5}} *)
N@% //MatrixForm
$$\left( \begin{array}{cccc} 7.38906 & 0. & 0. & 0. \\ 0. & 20.0855 & 0. & 0. \\ 0. & 0. & 54.5982 & 0. \\ 0. & 0. & 0. & 148.413 \\ \end{array} \right)$$
For the matrix exponential, use MatrixExp instead of Exp. Wolfram Alpha interprets Exp to be the entrywise exponentiation.