Python, Programming, Computer Science, Data Science, Electrical Engineering.
|X(freq)|') plt.xlim(0, 10) plt.subplot(122) plt.plot(t, ifft(X), 'r') plt.xlabel('Time (s)') plt.ylabel('Amplitude') plt.tight_layout() plt.show() %timeit fft(x) We get the result: 14.8 µs ± 471 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) Synopsis Using the FFT algorithm is a