NLA-lib Explorer

NLAlib.alternatesOn_of_isUniformApproxOn_minimaxError

Library · theorem

Chebyshev's equioscillation theorem, necessity. Let a < \mathbf{b}, f continuous on [a, \mathbf{b}], and p a real polynomial of degree at most n with \lvert f - p \rvert \le E_n(f; [a, \mathbf{b}]) on [a, \mathbf{b}] (a best approximation). Then f - p alternates on [a, \mathbf{b}] at n + 2 points with level E_n(f; [a, \mathbf{b}]): it equioscillates (AlternatesOn.exists_eq_of_abs_le). [Trefethen2019, Theorem 10.1]; [Rivlin1981, Ch. 1] (locators to check). Result: equioscillation

NLAlib.alternatesOn_of_isUniformApproxOn_minimaxError {f : ℝ → ℝ} {a b : ℝ} (hab : a < b)
  (hf : ContinuousOn f (Set.Icc a b)) {n : ℕ} {p : Polynomial ℝ} (hp : p.degree ≤ ↑n)
  (hbest :
    Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b)
      (minimaxError f (Set.Icc a b) n)) :
  AlternatesOn (fun x ↦ f x - Polynomial.eval x p) (Set.Icc a b) (n + 2)
    (minimaxError f (Set.Icc a b) n)

Full source on GitHub

Import NLAlib.Polynomial.Approximation.Equioscillation.