NLA-lib Explorer

NLAlib.chebyshevCoeff

Library ยท def

The full coefficient is a_k=\frac{2-\mathbf{1}_{k=0}}{\pi}\int_0^\pi f(\cos\theta)\cos(k\theta)\,d\theta. [Trefethen2019, Theorem 3.1, Eqs. (3.11)โ€“(3.12)], after cosine substitution, generalized to RCLike values. Each weighted integrand has its own Bochner integrability condition; its integral is zero when nonintegrable. Nonintegrability of the unweighted pullback does not force every coefficient to vanish. No reconstruction is asserted for arbitrary functions.

NLAlib.chebyshevCoeff.{u_1} {๐•œ : Type u_1} [RCLike ๐•œ] (f : โ„ โ†’ ๐•œ) (k : โ„•) : ๐•œ

Full source on GitHub

Import NLAlib.Polynomial.Approximation.ChebyshevCoefficients.