def close(x, y, rtol=1e-05, atol=1e-08):
    """Returns True if x and y are sufficiently close.

    Parameters
    ----------
    rtol : float
        The relative error tolerance.
    atol : float
        The absolute error tolerance.

    """
    return abs(x - y) <= atol + rtol * abs(y)
