def isclose(vala, valb, rel_tol=1e-09, abs_tol=0.0):
    """
    Whether two values are close to each other.

    Identical to math.isclose() in Python 3.5.
    """
    return abs(vala - valb) <= max(rel_tol * max(abs(vala), abs(valb)), abs_tol
        )
