Characteristic polynomial (characteristic_polynomial)
Characteristic polynomial of a square matrix in a variable.
How to write it
characteristic_polynomial(matrix, x)
- matrix
- A square matrix. Takes a matrix, written as a list of rows.
- x
- The variable of the polynomial. Takes a variable.
Examples
characteristic_polynomial([[1, 2], [3, 4]], x)In the solver,
Open in the solvercharacteristic_polynomial([[1, 2], [3, 4]], x)givesx^2 - 5x - 2.
Related functions
- cholesky_decomposition
Cholesky decomposition of a symmetric positive definite matrix.
- adjugate
Adjugate of a square matrix: the transpose of its cofactors.
- cross
Cross product of two vectors in three dimensions.
- upper_triangularize
A matrix with the entries below the diagonal set to zero.
- det
Determinant of a square matrix.
- transpose
Transpose of a matrix: its rows become its columns.