def s(series):
    """ sums elements in series

    Notes
    ---------
    .. math::
        Z = Z_1 + Z_2 + ... + Z_n

    """
    z = len(series[0]) * [0 + 0 * 1.0j]
    for elem in series:
        z += elem
    return z
