MCPcopy
hub / github.com/numpy/numpy / test_simple

Method test_simple

numpy/_core/tests/test_umath_complex.py:138–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136
137class TestClog:
138 def test_simple(self):
139 x = np.array([1 + 0j, 1 + 2j])
140 y_r = np.log(np.abs(x)) + 1j * np.angle(x)
141 y = np.log(x)
142 assert_almost_equal(y, y_r)
143
144 @platform_skip
145 @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