Matrix power (matrix_power)
A square matrix to a whole power.
How to write it
matrix_power(matrix, n)
- matrix
- A square matrix. Takes a matrix, written as a list of rows.
- n
- The power. Takes a whole number.
Examples
matrix_power([[1, 1], [1, 0]], 5)In the solver,
Open in the solvermatrix_power([[1, 1], [1, 0]], 5)gives[[8, 5], [5, 3]].
Related functions
- matrix_log
Logarithm of a square matrix.
- matrix_function
A function of a square matrix.
- matrix_exp
Exponential of a square matrix.
- identity_matrix
Identity matrix of a given size.
- hilbert_matrix
Hilbert matrix of a given size: the entry in row i and column j is 1/(i + j - 1).
- diagonal_matrix
A matrix with the given list on its diagonal and zeros elsewhere.