NLAlib.alternatesOn_minimaxPoly
Library · theorem
The chosen best approximation equioscillates: for a < \mathbf{b} and f continuous on [a, \mathbf{b}], f - \mathrm{minimaxPoly}\ f\ [a, \mathbf{b}]\ n alternates on [a, \mathbf{b}] at n + 2 points with level E_n(f; [a, \mathbf{b}]). [Trefethen2019, Theorem 10.1]. Result: equioscillation
NLAlib.alternatesOn_minimaxPoly {f : ℝ → ℝ} {a b : ℝ} (hab : a < b)
(hf : ContinuousOn f (Set.Icc a b)) (n : ℕ) :
AlternatesOn (fun x ↦ f x - Polynomial.eval x (minimaxPoly f (Set.Icc a b) n)) (Set.Icc a b)
(n + 2) (minimaxError f (Set.Icc a b) n)Import NLAlib.Polynomial.Approximation.Equioscillation.