MCPcopy Index your code
hub / github.com/numpy/numpy / test_simple_conjugate

Method test_simple_conjugate

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

Source from the content-addressed store, hash-verified

293 check_complex_value(np.sqrt, -1, 0, 0, 1)
294
295 def test_simple_conjugate(self):
296 ref = np.conj(np.sqrt(complex(1, 1)))
297
298 def f(z):
299 return np.sqrt(np.conj(z))
300
301 check_complex_value(f, 1, 1, ref.real, ref.imag, False)
302
303 #def test_branch_cut(self):
304 # _check_branch_cut(f, -1, 0, 1, -1)

Callers

nothing calls this directly

Calls 1

check_complex_valueFunction · 0.85

Tested by

no test coverage detected