Fourier Transform, Data Science, Applied Mathematics, Mathematics, Computer Science.
label='Analytic (full)') plt.xlim(-30, 30) plt.legend(); Fourier transform is sin(k/2)/(k/2) Note the excellent agreement. Now, we transform it back: k, g = fourier_transform_1d(f, x) y, h = inverse_fourier_transform_1d(g, k, sort_results=True) plt.plot(y, np.real(h), label='Numerical transform')