예제 #1
0
 def cos(x):
     vml.py_vzCos(x[0], x[1])
예제 #2
0
 def complex_noreal_cos(x):
     vml.py_vzCos(x[3], x[4])
예제 #3
0
 def complex_cos(x):
     vml.py_vzCos(x[1], x[4])
예제 #4
0
 def complex_noimag_cos(x):
     vml.py_vzCos(x[2], x[4])
예제 #5
0
 def test_vzCos(self):
     x = np.array([1 + 1j], dtype=np.complex128)
     y = np.array([42.42], dtype=np.complex128)
     vml.py_vzCos(x, y)
     self.assertAlmostEqual(y[0], 0.83373003 - 0.98889771j)