Previous Up Next

5.45.7 Power of a matrix: ^ &^

The infixed operator ^ (or &^) is used to raise a matrix to an integral power.

Example.

Input:

[[1,2],[3,4]] ^ 5

or:

[[1,2],[3,4]] &^ 5

Output:



10691558
23373406



Previous Up Next