Previous Up Next

2.42.7  Power of a matrix : ^ &^

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

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

Or :

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

Output :

[[1069,1558],[2337,3406]]

Previous Up Next