def dcgain(sys):
    """Return the zero-frequency (or DC) gain of the given system

    Returns
    -------
    gain : ndarray
        The zero-frequency gain, or np.nan if the system has a pole
        at the origin
    """
    return sys.dcgain()
