eigen.spad line 216 [edit on github]
This is a package for the exact computation of eigenvalues and eigenvectors. This package works for matrices with coefficients which are rational functions over a ring where we can factor polynomials. Eigenvalues not in base field are represented by their minimal polynomial.
characteristicPolynomial(m)
returns the characteristicPolynomial of the matrix m
using a new generated symbol symbol as the main variable.
characteristicPolynomial(m, var)
returns the characteristicPolynomial of the matrix m
using the symbol var as the main variable.
eigenvalues(m)
returns the eigenvalues of the matrix m
.
eigenvector(eigval, m)
returns the eigenvectors belonging to the eigenvalue eigval
for the matrix m
.
eigenvectors(m)
returns the eigenvalues and eigenvectors for the matrix m
. The eigenvalues in base field and the corresponding eigenvectors are explicitly computed, while the other ones are given via their minimal polynomial and the corresponding eigenvectors are expressed in terms of a "generic" root of such a polynomial.
generalizedEigenvector(eigen, m)
returns the generalized eigenvectors of the matrix relative to the eigenvalue eigen
, as returned by the function eigenvectors.
generalizedEigenvector(alpha, m, k, g)
returns the generalized eigenvectors of the matrix relative to the eigenvalue alpha
. The integers k
and g
are respectively the algebraic and the geometric multiplicity of the eigenvalue alpha
.
generalizedEigenvectors(m)
returns the generalized returns the generalized eigenvectors of the matrix m
.