NLA-lib Explorer

NLAlib.dividedDifference_eval_eq_coeff

Library · theorem

The divided difference of a polynomial of degree at most q on q + 1 distinct nodes is its coefficient of X^q. [Higham2008, (1.10)]; locator to verify.

NLAlib.dividedDifference_eval_eq_coeff.{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)
  {p : Polynomial F} (hp : p.degree ≤ ↑q) :
  (dividedDifference s v fun i ↦ Polynomial.eval (v i) p) = p.coeff q

Full source on GitHub

Import NLAlib.Polynomial.Interpolation.DividedDifference.