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

Method test_simple

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

Source from the content-addressed store, hash-verified

36
37class TestCexp:
38 def test_simple(self):
39 check = check_complex_value
40 f = np.exp
41
42 check(f, 1, 0, np.exp(1), 0, False)
43 check(f, 0, 1, np.cos(1), np.sin(1), False)
44
45 ref = np.exp(1) * complex(np.cos(1), np.sin(1))
46 check(f, 1, 1, ref.real, ref.imag, False)
47
48 @platform_skip
49 def test_special_values(self):

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected