Home
last modified time | relevance | path

Searched refs:approx_equal (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_statistics.py76 def approx_equal(x, y, tol=1e-12, rel=1e-7): function
242 if approx_equal(first, second, tol, rel):
310 self.assertTrue(approx_equal(a, b, tol=0, rel=rel))
311 self.assertTrue(approx_equal(b, a, tol=0, rel=rel))
339 flag1 = approx_equal(a, b, tol, rel)
340 flag2 = approx_equal(b, a, tol, rel)
351 result = approx_equal(x, x, tol=tol, rel=rel)
353 result = approx_equal(-x, -x, tol=tol, rel=rel)
414 result = approx_equal(a, a+1, tol=0, rel=0)
449 self.assertTrue(approx_equal(x, y, tol=2*delta, rel=0), msg)
[all …]