Chebyshev expansion series for function

how can I calculate the expansion of function by the Chebychev approximation?