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

Method test_simple

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

Source from the content-addressed store, hash-verified

31
32class TestCexp:
33 def test_simple(self):
34 check = check_complex_value
35 f = np.exp
36
37 check(f, 1, 0, np.exp(1), 0, False)
38 check(f, 0, 1, np.cos(1), np.sin(1), False)
39
40 ref = np.exp(1) * complex(np.cos(1), np.sin(1))
41 check(f, 1, 1, ref.real, ref.imag, False)
42
43 @platform_skip
44 def test_special_values(self):

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected