예제 #1
0
 def acos(x):
     vml.py_vdAcos(x[0], x[1])
예제 #2
0
 def acos_without_error(x):
     vml.py_vmlSetMode(vml.PY_VML_ERRMODE_DEFAULT)
     vml.py_vdAcos(x[0], x[0])
예제 #3
0
 def acos_with_errorhandling(x):
     vml.py_vmlSetMode(vml.PY_VML_ERRMODE_DEFAULT)
     vml.py_vdAcos(x[1], x[1])
예제 #4
0
 def acos_without_error_errorhandling(x):
     vml.py_vmlSetMode(vml.PY_VML_ERRMODE_ERRNO)
     vml.py_vdAcos(x[1], x[1])
예제 #5
0
 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)