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

Function assert_arctan2_isnzero

numpy/core/tests/test_umath.py:2160–2161  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

2158
2159
2160def assert_arctan2_isnzero(x, y):
2161 assert_((ncu.arctan2(x, y) == 0 and np.signbit(ncu.arctan2(x, y))), "arctan(%s, %s) is %s, not -0" % (x, y, ncu.arctan2(x, y)))
2162
2163
2164class TestArctan2SpecialValues:

Callers 3

test_zero_pzeroMethod · 0.85
test_zero_positiveMethod · 0.85
test_any_pinfMethod · 0.85

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected