def _isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
 if (a == b):
  return True
 if ((rel_tol < 0.0) or (abs_tol < 0.0)):
  raise ValueError('error tolerances must be non-negative')
 if (isinf(abs(a)) or isinf(abs(b))):
  return False
 diff = fabs((b - a))
 return (((diff <= fabs((rel_tol * b))) or (diff <= fabs((rel_tol * a)))) or (diff <= abs_tol))

def _isclose ( a , b , rel_tol = 1e-09 , abs_tol = 0.0 ) : if ( a == b ) : return True if ( ( rel_tol < 0.0 ) or ( abs_tol < 0.0 ) ) : raise ValueError ( 'error tolerances must be non-negative' ) if ( isinf ( abs ( a ) ) or isinf ( abs ( b ) ) ) : return False diff = fabs ( ( b - a ) ) return ( ( ( diff <= fabs ( ( rel_tol * b ) ) ) or ( diff <= fabs ( ( rel_tol * a ) ) ) ) or ( diff <= abs_tol ) )
measures whether two floats are "close" to each other .