Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

eigensystem function

Eigenvalues and eigenvectors of a square matrix together: the values, then the vectors.

How to write it

eigensystem(matrix)

matrix
A square matrix. Takes a matrix, written as a list of rows.

Examples

  • eigensystem⁡((2112))=[[1,3],(−1111)]\displaystyle \operatorname{eigensystem}\left(\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\right) = \left[ \left[ 1, 3 \right], \begin{pmatrix} -1 & 1 \\ 1 & 1 \end{pmatrix} \right]
    eigensystem([[2, 1], [1, 2]])

    In the solver, eigensystem([[2, 1], [1, 2]]) gives [[1, 3], [[-1, 1], [1, 1]]].

    Open in the solver
  • eigenvalues

    Eigenvalues of a square matrix.

  • dot

    Dot product of two vectors, or product of two matrices.

  • eigenvectors

    Eigenvectors of a square matrix, one for each eigenvalue.

  • diagonal_matrix

    A matrix with the given list on its diagonal and zeros elsewhere.

  • hilbert_matrix

    Hilbert matrix of a given size: the entry in row i and column j is 1/(i + j - 1).

  • diagonal

    The diagonal of a matrix, as a list.