Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. # Division by 2 is made to have full period from 0 to 2pi
  2. def src_f(x):
  3. return 4*np.sin(x/2)**3*np.cos(x/2)
  4.  
  5. # Example, fs being sampling frequency and f_c the fundemental of the waveform
  6. src_d[0:fs/f_c] = src_f(w)[0:fs/f_c]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement