def _sweep_poly_phase(t, poly):
    # polyint handles lists, ndarrays and instances of poly1d automatically.
    intpoly = polyint(poly)
    phase = 2 * pi * polyval(intpoly, t)
    return phase
Calculate the phase used by sweep_poly to generate its output.
dataset/ETHPy150Open scipy/scipy/scipy/signal/waveforms.py/_sweep_poly_phase