NLA-lib Explorer

NLAlib.matchesMoments_measureT

Library · theorem

Chebyshev–Gauss quadrature as moment matching: for k \ne 0, the Chebyshev measure (1 - \mathbf{x}^2)^{-1/2}\,d\mathbf{x} on [-1, 1] (Mathlib's Polynomial.Chebyshev.measureT) and the rule \frac{\pi}{k}\sum_{i<k}\delta_{\cos((2i + 1)\pi/(2k))} match their first 2k moments. Mathlib's Polynomial.Chebyshev.integral_eq_sumZeroes, stated through MatchesMoments.

NLAlib.matchesMoments_measureT {k : ℕ} (hk : k ≠ 0) :
  MatchesMoments Polynomial.Chebyshev.measureT
    (ENNReal.ofReal (π / ↑k) •
      ∑ i ∈ Finset.range k, Measure.dirac (Real.cos ((2 * ↑i + 1) / (2 * ↑k) * π)))
    (2 * k)

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Moments.