Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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⁡((1234),x)=x2−5x−2\displaystyle \operatorname{characteristic\_polynomial}\left(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, x\right) = x^{2}-5 x-2
    characteristic_polynomial([[1, 2], [3, 4]], x)

    In the solver, characteristic_polynomial([[1, 2], [3, 4]], x) gives x^2 - 5x - 2.

    Open in the solver
  • 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.