Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Wed Oct 23 18:19:43 2019
  4.  
  5. @author: Daniel
  6. """
  7.  
  8. import numpy as np
  9. import matplotlib.pyplot as plt
  10. import math
  11.  
  12.  
  13. f=120
  14. phi=1.5*math.pi
  15. fs=1/12000
  16. T=2.0
  17. tab=[]
  18.  
  19. for t in range(0.0,T,fs):
  20. x=math.exp^(-t)*math.sin(math.pi*f*t)/(2+math.cos(math.pi*t))
  21. tab.append(x)
  22.  
  23. plt.title('Zadanie 1')
  24. plt.figure(1)
  25. plt.plot(tab)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement