Searched refs:isclose (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0b2.rst | 65 Add math.isclose() and cmath.isclose() functions as per :pep:`485`. Contributed
|
/third_party/python/Lib/test/ |
D | test_cmath.py | 599 isclose = cmath.isclose variable in IsCloseTests 603 self.isclose(1j, 1j, rel_tol=1j) 606 self.isclose(1j, 1j, abs_tol=1j) 609 self.isclose(1j, 1j, rel_tol=1j, abs_tol=1j)
|
D | test_math.py | 798 self.assertTrue(math.isclose(hypot(*([fourthmax]*n)), 971 self.assertTrue(math.isclose(dist(p, q), fourthmax * math.sqrt(n))) 972 self.assertTrue(math.isclose(dist(q, p), fourthmax * math.sqrt(n))) 2092 isclose = math.isclose # subclasses should override this variable in IsCloseTests 2095 self.assertTrue(self.isclose(a, b, *args, **kwargs), 2099 self.assertFalse(self.isclose(a, b, *args, **kwargs),
|
D | test_statistics.py | 2182 self.assertTrue(math.isclose(gm_float, float(gm_decimal))) 2208 self.assertTrue(math.isclose(big_gm, 36.0 * large)) 2214 self.assertTrue(math.isclose(small_gm, 36.0 * small)) 2298 self.assertTrue(all(math.isclose(e, a) for e, a in zip(exp, act))) 2338 self.assertTrue(all(math.isclose(e, a) for e, a in zip(exp, act))) 2715 self.assertTrue(all(math.isclose(e, a, abs_tol=0.0001)
|
/third_party/python/Doc/whatsnew/ |
D | 3.5.rst | 610 :pep:`485` adds the :func:`math.isclose` and :func:`cmath.isclose` 614 Relative tolerance is the maximum allowed difference between ``isclose`` 620 >>> math.isclose(a, b, rel_tol=1e-5) 622 >>> math.isclose(a, b, rel_tol=1e-6) 631 >>> math.isclose(a, b, abs_tol=0.00003) 633 >>> math.isclose(a, b, abs_tol=0.00001) 888 A new function :func:`~cmath.isclose` provides a way to test for approximate 1451 A new function :func:`~math.isclose` provides a way to test for approximate
|
/third_party/python/Doc/library/ |
D | cmath.rst | 211 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
|
D | math.rst | 144 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
|