NLA-lib Explorer

Gauss–Radau quadrature

Library · Result group

Theorem (matchesMoments_radauQuadrature). Gauss–Radau quadrature: for a finite measure \mu supported in [a, \mathbf{b}], c \in \{a, \mathbf{b}\} and every k, the Radau rule with prescribed node c and k free nodes matches the first 2k + 1 moments of \mu: it integrates every real polynomial of degree at most 2k exactly. [Gautschi2004, Theorem 3.2]; [GolubMeurant2010, Ch. 6] (locators to check); there for \mu with more than k support points; otherwise the rule is \mu itself.

Headline

Lean statement and details
NLAlib.matchesMoments_radauQuadrature {μ : Measure ℝ} [IsFiniteMeasure μ] {a b c : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (hc : c = a ∨ c = b) (k : ℕ) :
  MatchesMoments μ (radauQuadrature μ c k) (2 * k + 1)

Full source on GitHub

Copy link