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

Method test_tanh

numpy/_core/tests/test_umath.py:1786–1792  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1784 np.array(1200.0, dtype='d'))
1785
1786 def test_tanh(self):
1787 in_ = [np.nan, -np.nan, np.inf, -np.inf]
1788 out = [np.nan, np.nan, 1.0, -1.0]
1789 for dt in ['e', 'f', 'd']:
1790 in_arr = np.array(in_, dtype=dt)
1791 out_arr = np.array(out, dtype=dt)
1792 assert_array_max_ulp(np.tanh(in_arr), out_arr, 3)
1793
1794 def test_arcsinh(self):
1795 in_ = [np.nan, -np.nan, np.inf, -np.inf]

Callers

nothing calls this directly

Calls 1

assert_array_max_ulpFunction · 0.90

Tested by

no test coverage detected