def freqs(b, a, worN=None, plot=None):
 if (worN is None):
  w = findfreqs(b, a, 200)
 elif isinstance(worN, int):
  N = worN
  w = findfreqs(b, a, N)
 else:
  w = worN
 w = atleast_1d(w)
 s = (1j * w)
 h = (polyval(b, s) / polyval(a, s))
 if (plot is not None):
  plot(w, h)
 return (w, h)

def freqs ( b , a , worN = None , plot = None ) : if ( worN is None ) : w = findfreqs ( b , a , 200 ) elif isinstance ( worN , int ) : N = worN w = findfreqs ( b , a , N ) else : w = worN w = atleast_1d ( w ) s = ( 1j * w ) h = ( polyval ( b , s ) / polyval ( a , s ) ) if ( plot is not None ) : plot ( w , h ) return ( w , h )
compute frequency response of analog filter .