this will help to understand the fft applications, like noise removal, solving heat equation.
This code demonstrates that for a smooth function, a lot of Fourier coefficients are very small. Setting these small coefficients to zero will not change the function significantly .This code uses the Fourier transform to solve the heat equation