Skip to content

MatrixPower

MatrixPower(matrix, n)

computes the nth power of a matrix

See

Examples

>> MatrixPower({{1, 2}, {1, 1}}, 10)
{{3363,4756},
{2378,3363}}
>> MatrixPower({{1, 2}, {2, 5}}, -3)
{{169,-70},
{-70,29}}

Argument {{1, 0}, {0}} at position 1 is not a non-empty rectangular matrix.

>> MatrixPower({{1, 0}, {0}}, 2)
MatrixPower({{1, 0}, {0}}, 2)

Implementation status

  • ✅ - full supported

Github