cheb_coeff.m

From Spinach Documentation Wiki
Jump to: navigation, search

Discrete cosine transform algorithm for Chebyshev expansion coefficients of the user-specified scalar function.

Syntax

    c=cheb_coeff(f,a,b,n)

Arguments

    f - function handle, must be vectorised

    a - left edge of the expansion interval

    b - right edge of the expansion interval

    n - number of Chebyshev polynomials in 
       the expansion

Outputs

    c - a vector of expansion coefficients

See also

Numerical infrastructure


Version 2.7, authors: Ilya Kuprov