NLA-lib Explorer

NLAlib.chebyshevCoeff_eval_T

Library · theorem

The coefficient of T_j at index k is one for j=k and zero otherwise. [Trefethen2019, Exercise 3.7]; [GolubMeurant2010, §2.5.1]. The generic scalar form follows by transporting Mathlib's real orthogonality through the real-to-RCLike integral map.

NLAlib.chebyshevCoeff_eval_T.{u_1} {𝕜 : Type u_1} [RCLike 𝕜] (j k : ℕ) :
  chebyshevCoeff (fun x ↦ Polynomial.eval (↑x) (Polynomial.Chebyshev.T 𝕜 ↑j)) k =
    if j = k then 1 else 0

Full source on GitHub

Import NLAlib.Polynomial.Approximation.ChebyshevCoefficients.