AngouriMath
PolynomialFactorization
Description
Summary
Factors a polynomial in one variable over the rationals into irreducibles:
x^4 + 3x^2 + 2 becomes (x^2 + 1)(x^2 + 2) , which no search for roots can
find because it has none.
find because it has none.
Remarks
the rational root theorem and divides out the linear factors it finds, which answers
the question only when the polynomial splits into linear pieces. A factor of degree two
or more with no rational root is invisible to it, and those are the common case above
degree three.
part, so the problem is over
SquareFreeDecomposition, so every remaining problem is square-free.
Factor what is left modulo a small prime, where
Then lift that factorisation from
try products of the lifted pieces against the original, which is where the true
factors are recovered — an irreducible factor over
modulo
Zassenhaus, On Hensel factorization I, J. Number Theory 1 (1969); von zur Gathen
and Gerhard, Modern Computer Algebra, ch. 15.
recombination is exponential in the number of modular factors, so it is given a budget
and declines past it. And
coefficient in the symmetric range modulo
smaller
exact division over
factors and call a reducible polynomial irreducible.
and the factors are multiplied back and compared with what they came from before the
answer is returned. The failure mode that survives all of that is an incomplete
factorisation, never a wrong one.
Members
Factor(AngouriMath.Entity,AngouriMath.Entity.Variable)
MethodFactorComplete(AngouriMath.Entity,AngouriMath.Entity.Variable)
MethodFactorMonic(AngouriMath.Functions.IntegerPolynomial)
MethodFactorPrimitive(AngouriMath.Functions.IntegerPolynomial)
MethodFactorSquareFree(AngouriMath.Functions.IntegerPolynomial)
MethodIsWorthFactoringToSolve(AngouriMath.Entity,AngouriMath.Entity.Variable)
MethodMaxMonicScale
FieldMaxPrimeAttempts
FieldPrimes
FieldTryFactorIntoIrreducibles(AngouriMath.Entity,AngouriMath.Entity.Variable,AngouriMath.Entity@)
Method
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online