Guest User

Untitled

a guest
May 28th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. >>> import scipy.signal as sig
  2. >>> b = [1, 1]
  3. >>> a = [1, 1, 0.5]
  4. >>> r, p, k = sig.residue(b,a)
  5. >>> r
  6. array([0.5-0.5j, 0.5+0.5j])
  7.  
  8. >>> p
  9. array([-0.5+0.5j, -0.5-0.5j])
  10.  
  11. >>> k
  12. array([0.])
  13.  
  14. >>> import harold as har
  15. >>> G = Transfer([1, 1], [1, 1, 0.5], dt=1)
  16. >>> impulse_response_plot(G);
Add Comment
Please, Sign In to add comment