NLAlib.dividedDifference_eq_coeff_interpolate
Library · theorem
The divided difference is a coefficient of the interpolant: on q + 1 distinct nodes, r[s] is the coefficient of X^q of Lagrange.interpolate s v r; this is Mathlib's Lagrange.coeff_eq_sum, whose count is #s - 1, for the interpolant.
NLAlib.dividedDifference_eq_coeff_interpolate.{u_1, u_2} {F : Type u_1} [Field F] {ι : Type u_2}
[DecidableEq ι] {s : Finset ι} {v : ι → F} (hvs : Set.InjOn v ↑s) {q : ℕ} (hs : s.card = q + 1)
(r : ι → F) : dividedDifference s v r = ((Lagrange.interpolate s v) r).coeff qImport NLAlib.Polynomial.Interpolation.DividedDifference.