public class CharacteristicPolynomial extends java.lang.Object implements Spectrum
p(λ) = det(A - λI)The zeros of this polynomial are the eigenvalues of A. That is, λ being an eigenvalue of A is equivalent to stating that the system of linear equations
(A - λI) v = 0where I is an identity matrix, has a non-zero solution v (namely an eigenvector). The Cayley-Hamilton theorem states that every square matrix satisfies its own characteristic polynomial, that is, p(A) = 0 .
| Constructor and Description |
|---|
CharacteristicPolynomial(Matrix A)
Construct the characteristic polynomial for a square matrix.
|
| Modifier and Type | Method and Description |
|---|---|
Polynomial |
getCharacteristicPolynomial()
Get the characteristic polynomial.
|
java.util.List<java.lang.Number> |
getEigenvalues()
Get all the eigenvalues.
|
java.lang.String |
toString() |
public CharacteristicPolynomial(Matrix A)
A - a square matrixjava.lang.IllegalArgumentException - if A is not squarepublic Polynomial getCharacteristicPolynomial()
public java.util.List<java.lang.Number> getEigenvalues()
SpectrumgetEigenvalues in interface Spectrumpublic java.lang.String toString()
toString in class java.lang.Object