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

Method test_simple_conjugate

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

Source from the content-addressed store, hash-verified

288 check_complex_value(np.sqrt, -1, 0, 0, 1)
289
290 def test_simple_conjugate(self):
291 ref = np.conj(np.sqrt(complex(1, 1)))
292
293 def f(z):
294 return np.sqrt(np.conj(z))
295
296 check_complex_value(f, 1, 1, ref.real, ref.imag, False)
297
298 #def test_branch_cut(self):
299 # _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