NLAlib.minimaxError
Library · def
The minimax error of f on s at degree n, E_n(f; s) := \inf\bigl\{\varepsilon : \exists p \in \mathbb{R}[\mathbf{x}],\ \deg p \le n,\ \lvert f(\mathbf{x}) - p(\mathbf{x}) \rvert \le \varepsilon \text{ for all } \mathbf{x} \in s\bigr\}, the error of the best uniform approximation of f on s by real polynomials of degree at most n, through the library's uniform-approximation interface Metric.IsUniformApproxOn. Junk values: 0 when no polynomial of degree at most n is within a finite distance of f on s (the set is empty; for example f unbounded on a bounded s), and 0 for s = \emptyset (the set is all of \mathbb{R}). It is meaningful whenever some polynomial of degree at most n is within a finite distance of f on s, in particular for s compact and f continuous on s, where the infimum is attained. [Trefethen2019, Ch. 10]; [Rivlin1981, Ch. 1].
NLAlib.minimaxError (f : ℝ → ℝ) (s : Set ℝ) (n : ℕ) : ℝImport NLAlib.Polynomial.Approximation.MinimaxError.