def acos(x): vml.py_vdAcos(x[0], x[1])
def acos_without_error(x): vml.py_vmlSetMode(vml.PY_VML_ERRMODE_DEFAULT) vml.py_vdAcos(x[0], x[0])
def acos_with_errorhandling(x): vml.py_vmlSetMode(vml.PY_VML_ERRMODE_DEFAULT) vml.py_vdAcos(x[1], x[1])
def acos_without_error_errorhandling(x): vml.py_vmlSetMode(vml.PY_VML_ERRMODE_ERRNO) vml.py_vdAcos(x[1], x[1])
def test_vdAcos(self): x = np.array([1.0], dtype=np.float64) y = np.array([42.42], dtype=np.float64) vml.py_vdAcos(x, y) self.assertAlmostEqual(y[0], 0.0)