def _sweep_poly_phase(t, poly):
 intpoly = polyint(poly)
 phase = ((2 * pi) * polyval(intpoly, t))
 return phase

def _sweep_poly_phase ( t , poly ) : intpoly = polyint ( poly ) phase = ( ( 2 * pi ) * polyval ( intpoly , t ) ) return phase
calculate the phase used by sweep_poly to generate its output .