AngouriMath
CharacteristicPolynomial(AngouriMath.Entity.Variable)
Method (no overloads)
Summary
The characteristic polynomial of this square matrix, det(x I - A) in the
variablex , written as a polynomial in it with each coefficient
simplified: for[[a, b], [c, d]] it is x^2 - (a + d) x + a d - b c .
null where the matrix is not square, or where x already occurs in it, since then the polynomial would not be one in x .
variable
simplified: for
Remarks
the constant term is
is
the minimal polynomial are stated with.
entries are polynomials in
elimination and Laplace expansion both leave a polynomial. Gaussian elimination would
leave its pivots, which are polynomials in
characteristic polynomial -- defined everywhere -- would have no value where one of
them vanished. #381
Example
Console.WriteLine(MathS.Matrix(new Entity[,] { { 1, 2 }, { 3, 4 } }).CharacteristicPolynomial("x"));Prints
x ^ 2 - 5 * x - 2Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online