NLA-lib Explorer

NLAlib.gaussQuadrature_real_singleton

Library · theorem

The mass of the Gauss rule at a node is the interpolatory weight: for a finite measure \mu supported in [a, \mathbf{b}], every k and every Gauss node \mathbf{x} of order k, \mathsf{gaussQuadrature}(\mu, k)(\{\mathbf{x}\}) = \int\ell_\mathbf{x}\,d\mu\,, \ell_\mathbf{x} the Lagrange basis polynomial of \mathbf{x} at the Gauss nodes; by IsOrthogonalPolynomial.integral_eval_basis_eq_integral_sq this is also \int\ell_\mathbf{x}^2\,d\mu. The link between the two weight forms of integral_gaussQuadrature_eq_sum and integral_gaussQuadrature.

NLAlib.gaussQuadrature_real_singleton {μ : Measure ℝ} [IsFiniteMeasure μ] {a b : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {k : ℕ} {x : ℝ} (hx : x ∈ gaussNodes μ k) :
  (gaussQuadrature μ k).real {x} =
    ∫ (t : ℝ), Polynomial.eval t (Lagrange.basis (gaussNodes μ k) id x) ∂μ

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Gauss.