AngouriMath
PolynomialDeterminant
Description
Summary
The determinant of a matrix whose entries are polynomials over the rationals, by
Bareiss' fraction-free elimination —O(n^3) where Laplace expansion is
O(n!) .
Bareiss' fraction-free elimination —
Remarks
the determinant genuinely has
expanded form. For a numeric one it is pure waste: the answer is a single number
and
#999 asks for, and
what decides it is not the size but whether the entries are polynomials this can read —
which is settled per matrix, by trying, rather than by a rule about
distrust an elimination is that its divisions leave quotients excluding the points where
a pivot vanishes — the defect
#992 was about. Its
divisions are exact over an integral domain, and here they are exact and checked:
the arithmetic happens in MultivariatePolynomial, which has no quotients to
leave behind at all, and a division that does not come out returns null and sends the
caller to Laplace. So the answer is a polynomial in the entries, or it is Laplace's.
with
MaxVariables indeterminates, and a matrix mentioning
a Constant, since
indeterminates and this ring cannot hold them. Each is a refusal to try, not a wrong
answer, and Laplace answers them exactly as before.
Members
MaxEliminationWork
FieldOf(System.Int32,System.Func{System.Int32,System.Int32,AngouriMath.Entity})
Method
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online