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

Method test_zero_positive

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

Source from the content-addressed store, hash-verified

2184 assert_almost_equal(ncu.arctan2(np.NZERO, -1), -np.pi)
2185
2186 def test_zero_positive(self):
2187 # atan2(+-0, x) returns +-0 for x > 0.
2188 assert_arctan2_ispzero(np.PZERO, 1)
2189 assert_arctan2_isnzero(np.NZERO, 1)
2190
2191 def test_positive_zero(self):
2192 # atan2(y, +-0) returns +pi/2 for y > 0.

Callers

nothing calls this directly

Calls 2

assert_arctan2_ispzeroFunction · 0.85
assert_arctan2_isnzeroFunction · 0.85

Tested by

no test coverage detected