NLA-lib Explorer

NLAlib.div_add_sub_eval_interpolate

Library · theorem

Interpolation error of the kernel z/(z + t): for nonempty nodes s, t with \theta + t \ne 0 on s and z + t \ne 0, \frac{z}{z + t} - q_t(z) = (-1)^{\lvert s \rvert + 1}\, \frac{t\,\pi(z)}{(z + t)\prod_{\theta \in s}(\theta + t)} \,, where q_t interpolates \theta \mapsto \theta/(\theta + t). The numerator z - (z + t)q_t(z) has degree at most \lvert s \rvert because s is nonempty. [ChenPersson2026, Lemma 4].

NLAlib.div_add_sub_eval_interpolate {s : Finset ℝ} {t z : ℝ} (hne : s.Nonempty)
  (hs : ∀ θ ∈ s, θ + t ≠ 0) (hz : z + t ≠ 0) :
  z / (z + t) - Polynomial.eval z ((Lagrange.interpolate s id) fun θ ↦ θ / (θ + t)) =
    (-1) ^ (s.card + 1) * t * Polynomial.eval z (Lagrange.nodal s id) / ((z + t) * ∏ θ ∈ s, (θ + t))

Full source on GitHub

Import NLAlib.Polynomial.Interpolation.Stieltjes.