NLAlib.integral_gaussQuadrature_eq_sum
Library · theorem
The Gauss rule as a sum of point masses: for every measure \mu on \mathbb{R}, every k and every f : \mathbb{R} \to \mathbb{R}, \int f\,d\,\mathsf{gaussQuadrature}(\mu, k) = \sum_{\mathbf{x}\in G}w_\mathbf{x} f(\mathbf{x})\,, with G the Gauss nodes of order k and w_\mathbf{x} the mass of the rule at \mathbf{x}. No support hypothesis: the rule is a finite sum of Dirac masses.
NLAlib.integral_gaussQuadrature_eq_sum (μ : Measure ℝ) (k : ℕ) (f : ℝ → ℝ) :
∫ (x : ℝ), f x ∂gaussQuadrature μ k = ∑ x ∈ gaussNodes μ k, (gaussQuadrature μ k).real {x} * f xImport NLAlib.Polynomial.Orthogonal.Gauss.