Exemplo n.º 1
0
 def check_arctanh():
     x = create_input_for_trigonometric_ops(
         [-1 / 4, -1 / 2, 0, 1 / 4, 1 / 2])
     y = nd.arctanh(x)
     # expected ouput for indices=(0, 1, -3, -2, -1) after applying arctanh()
     expected_output = [
         np.arctanh(-1 / 4),
         np.arctanh(-1 / 2), 0,
         np.arctanh(1 / 4),
         np.arctanh(1 / 2)
     ]
     assert_correctness_of_trigonometric_ops(y, expected_output)
Exemplo n.º 2
0
 def arctanh(x):
     return nd.arctanh(x)