Table of Contents
Pow
We can calculate matrix to the power of an integer
Example
Input
- Example.Quanty
A = Matrix.New({{1,2},{3,4}}) B = A^2 print(B) print(B==A*A) C = A^3 print(C) print(C==A*A*A)
Result
{ { 7 , 10 } , { 15 , 22 } } true { { 37 , 54 } , { 81 , 118 } } true