RosettaCodeData/Task/Matrix-exponentiation-operator/Fermat/matrix-exponentiation-operator.fermat

8 lines
207 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Array a[2,2]; {illustrate with a 2x2 matrix}
[a]:=[(2/3, 1/3, 4/5, 1/5)];
[a]^-1; {matrix inverse}
[a]^0; {identity matrix}
[a]^2;
[a]^3;
[a]^10;