NLA-lib Explorer

NLAlib.IsMomentPosDef.gaussQuadrature_real_singleton_pos

Library · theorem

The Gauss weights are positive: if a finite measure \mu supported in [a, \mathbf{b}] is positive definite up to degree k, then the k-point Gauss rule gives every Gauss node positive mass. [Gautschi2004, Theorem 1.46] (locator to check).

NLAlib.IsMomentPosDef.gaussQuadrature_real_singleton_pos {μ : Measure ℝ} [IsFiniteMeasure μ]
  {a b : ℝ} {k : ℕ} (h : IsMomentPosDef μ k) (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) {x : ℝ}
  (hx : x ∈ gaussNodes μ k) : 0 < (gaussQuadrature μ k).real {x}

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Gauss.