NLAlib.minimaxPoly
Library · def
A best approximation of f on s by real polynomials of degree at most n: some p with \deg p \le n and \lvert f(\mathbf{x}) - p(\mathbf{x}) \rvert \le E_n(f; s) for all \mathbf{x} \in s, chosen. It exists for s compact and f continuous on s; on an interval [a, \mathbf{b}], a < \mathbf{b}, it is the unique best approximation (NLAlib.eq_minimaxPoly_of_isUniformApproxOn_minimaxError), so the choice is canonical there. Junk value: 0 when no best approximation of degree at most n exists. Its degree is at most n in every case. [Trefethen2019, Ch. 10]; [Rivlin1981, Ch. 1].
NLAlib.minimaxPoly (f : ℝ → ℝ) (s : Set ℝ) (n : ℕ) : Polynomial ℝImport NLAlib.Polynomial.Approximation.MinimaxError.