MCPcopy Create free account
hub / github.com/numpy/numpy / test_zero_pzero

Method test_zero_pzero

numpy/core/tests/test_umath.py:2176–2179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2174 assert_almost_equal(ncu.arctan2(np.NZERO, np.NZERO), -np.pi)
2175
2176 def test_zero_pzero(self):
2177 # atan2(+-0, +0) returns +-0.
2178 assert_arctan2_ispzero(np.PZERO, np.PZERO)
2179 assert_arctan2_isnzero(np.NZERO, np.PZERO)
2180
2181 def test_zero_negative(self):
2182 # atan2(+-0, x) returns +-pi for x < 0.

Callers

nothing calls this directly

Calls 2

assert_arctan2_ispzeroFunction · 0.85
assert_arctan2_isnzeroFunction · 0.85

Tested by

no test coverage detected