NLA-lib Explorer

NLAlib.abs_integral_sub_integral_gaussQuadrature_le_of_continuousOn

Library · theorem

The Gauss-rule error and the minimax error: for a finite measure \mu supported in [a, \mathbf{b}] and f continuous on [a, \mathbf{b}], the (k + 1)-point Gauss rule satisfies \Bigl\lvert\int f\,d\mu - \int f\,d\,\mathsf{gaussQuadrature}(\mu, k + 1)\Bigr\rvert \le 2E_{2k + 1}(f; [a, \mathbf{b}])\,\mu(\mathbb{R})\,, E_{2k + 1} the error of the best uniform approximation of f on [a, \mathbf{b}] by polynomials of degree at most 2k + 1 (minimaxError). [GolubMeurant2010, Ch. 6]; [Trefethen2019, Ch. 19] (locator to check).

NLAlib.abs_integral_sub_integral_gaussQuadrature_le_of_continuousOn {μ : Measure ℝ}
  [IsFiniteMeasure μ] {a b : ℝ} (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {f : ℝ → ℝ}
  (hf : ContinuousOn f (Set.Icc a b)) (k : ℕ) :
  |∫ (x : ℝ), f x ∂μ - ∫ (x : ℝ), f x ∂gaussQuadrature μ (k + 1)| ≤
    2 * minimaxError f (Set.Icc a b) (2 * k + 1) * μ.real Set.univ

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Gauss.