NLA-lib Explorer

NLAlib.minimaxError_add_eval

Library · theorem

Adding a polynomial of degree at most n does not change the minimax error: E_n(f + q; s) = E_n(f; s) for \deg q \le n, for every f and s. [Rivlin1981, Ch. 1] (locator to check).

NLAlib.minimaxError_add_eval (f : ℝ → ℝ) (s : Set ℝ) {n : ℕ} {q : Polynomial ℝ}
  (hq : q.degree ≤ ↑n) : minimaxError (fun x ↦ f x + Polynomial.eval x q) s n = minimaxError f s n

Full source on GitHub

Import NLAlib.Polynomial.Approximation.MinimaxError.