chebCoeff.RdChebyshev Coefficients for Chebyshev polynomials of the first kind.
chebCoeff(fun, a, b, n)For a function fun on on the interval [a, b] determines the
coefficients of the Chebyshev polynomials up to degree n that will
approximate the function (in L2 norm).
Vector of coefficients for the Chebyshev polynomials, from low to high degrees (see the example).
Weisstein, Eric W. “Chebyshev Polynomial of the First Kind." From MathWorld — A Wolfram Web Resource. https://mathworld.wolfram.com/ChebyshevPolynomialoftheFirstKind.html
See the “Chebfun Project” <https://www.chebfun.org/> by Nick Trefethen.