RosettaCodeData/Task/Matrix-exponentiation-operator/Octave/matrix-exponentiation-opera...

7 lines
45 B
Plaintext

M = [ 3, 2; 2, 1 ];
M^0
M^1
M^2
M^(-1)
M^0.5