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

Method test_simple

numpy/core/tests/test_umath_complex.py:133–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131
132class TestClog:
133 def test_simple(self):
134 x = np.array([1+0j, 1+2j])
135 y_r = np.log(np.abs(x)) + 1j * np.angle(x)
136 y = np.log(x)
137 assert_almost_equal(y, y_r)
138
139 @platform_skip
140 @pytest.mark.skipif(platform.machine() == "armv5tel", reason="See gh-413.")

Callers

nothing calls this directly

Calls 1

assert_almost_equalFunction · 0.90

Tested by

no test coverage detected