NLA-lib Explorer

NLAlib.integral_radauQuadrature

Library · theorem

The Radau rule with the interpolatory weights: for a finite measure \mu supported in [a, \mathbf{b}], c \in \{a, \mathbf{b}\}, every k and every f : \mathbb{R} \to \mathbb{R}, \int f\,d\,\mathsf{radauQuadrature}(\mu, c, k) = \sum_{\mathbf{x}\in R}\Bigl(\int\ell_\mathbf{x}\,d\mu\Bigr)f(\mathbf{x})\,, R the Radau nodes and \ell_\mathbf{x} their Lagrange basis polynomials.

NLAlib.integral_radauQuadrature {μ : Measure ℝ} [IsFiniteMeasure μ] {a b c : ℝ}
  (hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (hc : c = a ∨ c = b) (k : ℕ) (f : ℝ → ℝ) :
  ∫ (x : ℝ), f x ∂radauQuadrature μ c k =
    ∑ x ∈ radauNodes μ c k,
      (∫ (t : ℝ), Polynomial.eval t (Lagrange.basis (radauNodes μ c k) id x) ∂μ) * f x

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Radau.