NLAlib.integral_lobattoQuadrature
Library · theorem
The Lobatto rule with the interpolatory weights: for a finite measure \mu supported in [a, \mathbf{b}], a < \mathbf{b}, every k and every f : \mathbb{R} \to \mathbb{R}, \int f\,d\,\mathsf{lobattoQuadrature}(\mu, a, \mathbf{b}, k) = \sum_{\mathbf{x}\in L}\Bigl(\int\ell_\mathbf{x}\,d\mu\Bigr)f(\mathbf{x})\,, L the Lobatto nodes and \ell_\mathbf{x} their Lagrange basis polynomials.
NLAlib.integral_lobattoQuadrature {μ : Measure ℝ} [IsFiniteMeasure μ] {a b : ℝ}
(hμ : ∀ᵐ (x : ℝ) ∂μ, x ∈ Set.Icc a b) (hab : a < b) (k : ℕ) (f : ℝ → ℝ) :
∫ (x : ℝ), f x ∂lobattoQuadrature μ a b k =
∑ x ∈ lobattoNodes μ a b k,
(∫ (t : ℝ), Polynomial.eval t (Lagrange.basis (lobattoNodes μ a b k) id x) ∂μ) * f xImport NLAlib.Polynomial.Orthogonal.Lobatto.