def sweep_poly(t, poly, phi=0):
 phase = _sweep_poly_phase(t, poly)
 phi *= (pi / 180)
 return cos((phase + phi))

def sweep_poly ( t , poly , phi = 0 ) : phase = _sweep_poly_phase ( t , poly ) phi *= ( pi / 180 ) return cos ( ( phase + phi ) )
frequency-swept cosine generator .