The lowest Taylor coefficient at a root #
The Taylor expansion taylor r p = p(X + r) of a polynomial p at r starts in degree
p.rootMultiplicity r, and its trailing coefficient is the value at r of p divided by the
largest power of X - r dividing it. This is the coefficient that survives when X - r is
divided out of p as often as possible before evaluating at r; for p ≠ 0 it is nonzero
(Polynomial.eval_divByMonic_pow_rootMultiplicity_ne_zero), so it is the lowest nonzero
coefficient of the Taylor expansion.
Main results #
Polynomial.natTrailingDegree_taylor: the Taylor expansion atrstarts in degreep.rootMultiplicity r.Polynomial.coeff_taylor_rootMultiplicity,Polynomial.trailingCoeff_taylor: its trailing coefficient is(p /ₘ (X - C r) ^ p.rootMultiplicity r).eval r.
The Taylor expansion of p at r starts in degree p.rootMultiplicity r.
The coefficient of X ^ p.rootMultiplicity r in the Taylor expansion of p at r is the
value at r of p divided by the largest power of X - r dividing it.
The trailing coefficient of the Taylor expansion of p at r is the value at r of p
divided by the largest power of X - r dividing it. For p ≠ 0 this is the lowest nonzero
coefficient.