Calculate the Chebyshev coefficients using fft.