|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.factorization.eigen.CharacteristicPolynomial
public class CharacteristicPolynomial
The characteristic polynomial of a square matrix is the function
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 = 0
where 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 Summary | |
|---|---|
CharacteristicPolynomial(Matrix A)
Construct a CharacteristicPolynomial from a square matrix. |
|
| Method Summary | |
|---|---|
Polynomial |
characteristicPolynomial()
Get a copy of the characteristic polynomial. |
NumberList |
eigenvalues()
Get all the eigenvalues. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharacteristicPolynomial(Matrix A)
A - a matrix
java.lang.IllegalArgumentException - if A is not square| Method Detail |
|---|
public Polynomial characteristicPolynomial()
public NumberList eigenvalues()
public java.lang.String toString()
toString in class java.lang.Object
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||