Python, Programming, Computer Science, Data Science, Electrical Engineering.
X_even+factor[int(N/2):]*X_odd]) return X # sampling rate sr = 128 # sampling interval ts = 1.0/sr t = np.arange(0,1,ts) freq = 1. x = 3*np.sin(2*np.pi*freq*t) freq = 4 x += np.sin(2*np.pi*freq*t) freq = 7 x += 0.5* np.sin(2*np.pi*freq*t) plt.figure(figsize = (8, 6)) plt.plot(t, x, 'r')