Theory of univariate polynomials #
This file starts looking like the ring theory of $R[X]$
A sufficient condition for the set of roots of a nonzero polynomial f
to be a subset of the
set of roots of g
is that f
divides f.derivative * g
. Over an algebraically closed field of
characteristic zero, this is also a necessary condition.
See isRoot_of_isRoot_iff_dvd_derivative_mul
Equations
Equations
Alias of Polynomial.divByMonic_add_X_sub_C_mul_derivative_divByMonic_eq_derivative
.
If f
is a polynomial over a field, and a : K
satisfies f' a ≠ 0
,
then f / (X - a)
is coprime with X - a
.
Note that we do not assume f a = 0
, because f / (X - a) = (f - f a) / (X - a)
.
To check a polynomial over a field is irreducible, it suffices to check only for divisors that have smaller degree.
See also: Polynomial.Monic.irreducible_iff_natDegree
.
To check a polynomial p
over a field is irreducible, it suffices to check there are no
divisors of degree 0 < d ≤ degree p / 2
.
See also: Polynomial.Monic.irreducible_iff_natDegree'
.
The normalized factors of a polynomial over a field times its leading coefficient give the polynomial.
An irreducible polynomial over a field must have positive degree.