Fourier transform
Fourier series for a periodic function is expanded in the time domain
Fourier series Fourier transform is visualized in the frequency domain
Key_Function
Code
Import numpy AS NP Import matplotlib.pyplot AS PLT X = np.linspace (0, 2 * np.pi, 30 ) Wave = np.cos (X) transformed = np.fft.fft (Wave) # cosine wave signal applied fft function # IFFT is the inverse fft function Print (np.all (np.abs (np.fft.ifft (transformed) - Wave) <10 ** -9 )) # True plt.plot (transformed) plt.show ()