NLA-lib Explorer

NLAlib.minimaxError_comp_Icc_neg_one_one

Library · theorem

Change of interval: for a < \mathbf{b}, pulling f back from [a, \mathbf{b}] to [-1, 1] by t \mapsto ((\mathbf{b} - a)t + \mathbf{b} + a)/2, the map used by the Chebyshev and Bernstein-ellipse approximations, preserves the minimax error. [Trefethen2019, Ch. 10].

NLAlib.minimaxError_comp_Icc_neg_one_one (f : ℝ → ℝ) {a b : ℝ} (hab : a < b) (n : ℕ) :
  minimaxError (fun t ↦ f (((b - a) * t + b + a) / 2)) (Set.Icc (-1) 1) n =
    minimaxError f (Set.Icc a b) n

Full source on GitHub

Import NLAlib.Polynomial.Approximation.MinimaxError.