A ^ b
A ^ b raises A to the power b. For a nonscalar A and integer b, A^b is computed by repeated multiplication of A. If b is negative A is inverted first. If b is zero, A^b is the identity matrix. For other values of b, it is rounded to its nearest integer value. Making b a nonscalar is not allowed.
A |
b |
A ^ b |
5 |
3 |
125 |
4 |
-2.1 |
0.054409 |
5.5 |
0 |
1 |
3 |
2.1 |
10.04511 |
[2, 0; 0, 2] |
4 |
[16, 0; 0, 16] |
[1, 2; 3, 4] |
-2.1 |
[5.5, -2.5; -3.75, 1.75] |
[1, 2; 3, 4] |
0 |
[1, 0; 0, 1] |
[1, 2; 3, 4] |
[1, 2; 3, 4] |
not allowed! |
• | b must be a scalar. b is rounded downward to the nearest integer value. |
• | A should be a scalar value or a square matrix. |