{{indexmenu_n>999}} ====== Pow ====== ### We can calculate matrix to the power of an integer ### ===== Example ===== ==== Input ==== 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 ===== Table of contents ===== {{indexmenu>..:#2|tsort}}
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)