def _zseries_to_cseries(zs):
n = (zs.size + <NUM_LIT:1>)//<NUM_LIT:2><EOL>c = zs[n-<NUM_LIT:1>:].copy()<EOL>c[<NUM_LIT:1>:n] *= <NUM_LIT:2><EOL>return c<EOL>
Covert z-series to a Chebyshev series.

    Covert a z series to the equivalent Chebyshev series. The result is
    never an empty array. The dtype of the return is the same as that of
    the input. No checks are run on the arguments as this routine is for
    internal use.

    Parameters
    ----------
    zs : 1-D ndarray
        Odd length symmetric z-series, ordered from  low to high.

    Returns
    -------
    c : 1-D ndarray
        Chebyshev coefficients, ordered from  low to high.