NLA-lib Explorer

NLAlib.eq_minimaxPoly_of_isUniformApproxOn_minimaxError

Library · theorem

Headline of best-approximation-uniqueness (provisional)

Every best approximation is the chosen one: for 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}], p = \mathrm{minimaxPoly}\ f\ [a, \mathbf{b}]\ n. [Trefethen2019, Theorem 10.1]. Result: best-approximation-uniqueness

NLAlib.eq_minimaxPoly_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)) :
  p = minimaxPoly f (Set.Icc a b) n

Full source on GitHub

Import NLAlib.Polynomial.Approximation.Equioscillation.