[SciPy-user] is there an easy way to extend/continuate a modulo function ?

Ryan May rmay@ou....
Sun Apr 15 12:29:22 CDT 2007


Stef Mientki wrote:
> In comparing different filters, I plot the phase of the transfer function
> 
>     # calculate the transfer function
>     h,w = signal.freqz ( filt_coeff[0], filt_coeff[1] )
>     # calculate the phase angle
>     w_Phase = arctan( imag(w) / real(w))
> 
You could use arctan2 instead of arctan:

	w_Phase = arctan2( imag(w), real(w))

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma



More information about the SciPy-user mailing list