Python, Programming, Computer Science, Data Science, Electrical Engineering.
'b', \ markerfmt=" ", basefmt="-b") plt.xlabel('Freq (Hz)') plt.ylabel('FFT Amplitude |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: 36.2 µs ± 775 ns per loop (mean