Matrix-exponentiation operator: Difference between revisions

m
m (→‎{{header|TI-89 BASIC}}: Remove an irrelevant shame banner)
Line 2,132:
\end{array}\right]</math>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
In Mathematica there is an distinction between powering elements wise and as a matrix. So m^2 will give m with each element squared. To do matrix exponentation we use the function MatrixPower. It can handle all types of numbers for the power (integers, floats, rationals, complex) but also symbols for the power, and all types for the matrix (numbers, symbols et cetera), and will always keep the result exact if the matrix and the exponent is exact.
<lang Mathematica>a = {{3, 2}, {4, 1}};
1,111

edits