Function approximation using Chebyshev polynomials

f(x) = ( sum (k=0..N-1) c_k * T_k(x) ) - 0.5 * c_0

over the interval [a,b]

Reference: NRiC