NLAlib.abs_integral_sub_integral_gaussQuadrature_le_of_isUniformApproxOn
Library · theorem
The Gauss-rule error from uniform approximation: for a finite measure \mu supported in [a, \mathbf{b}], f integrable against \mu, and a real polynomial p of degree less than 2k within \varepsilon of f on [a, \mathbf{b}], \Bigl\lvert\int f\,d\mu - \int f\,d\,\mathsf{gaussQuadrature}(\mu, k)\Bigr\rvert \le 2\varepsilon\,\mu(\mathbb{R})\,. [GolubMeurant2010, Ch. 6]; the composition of exactness with the moment-matching transfer.
NLAlib.abs_integral_sub_integral_gaussQuadrature_le_of_isUniformApproxOn {μ : Measure ℝ}
[IsFiniteMeasure μ] {a b : ℝ} (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {f : ℝ → ℝ}
(hf : Integrable f μ) {k : ℕ} {p : Polynomial ℝ} (hp : p.degree < 2 * ↑k) {ε : ℝ}
(hε : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a b) ε) :
|∫ (x : ℝ), f x ∂μ - ∫ (x : ℝ), f x ∂gaussQuadrature μ k| ≤ 2 * ε * μ.real Set.univImport NLAlib.Polynomial.Orthogonal.Gauss.