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

See `sweep_poly` for a description of the arguments.