Fourier Transform, Data Science, Applied Mathematics, Mathematics, Computer Science.
`sort_results` is set to True - h (numpy array): inverse Fourier transform values calculated at coordinate x """ dk = k[1] - k[0] f = np.fft.ifft(func) * len(k) * dk /(2*np.pi) x = np.fft.fftfreq(f.size)*2*np.pi/dk if sort_results: zipped_lists = zip(x, f) sorted_pairs = sorted(zipped_lists)