예제 #1
0
 def test_cos_vector_1(self):
     a = np.random.randn(100)
     np.testing.assert_almost_equal(bm.cos(a), np.cos(a), decimal=8)
예제 #2
0
 def test_cos_scalar_2(self):
     np.testing.assert_almost_equal(bm.cos(-2 * np.pi),
                                    np.cos(-2 * np.pi),
                                    decimal=8)
예제 #3
0
 def test_cos_scalar_1(self):
     a = np.random.rand()
     np.testing.assert_almost_equal(bm.cos(a), np.cos(a), decimal=8)
예제 #4
0
 def test_cos_vector_1(self):
     a = np.random.randn(100)
     np.testing.assert_almost_equal(bm.cos(a), np.cos(a), decimal=8)
예제 #5
0
 def test_cos_scalar_2(self):
     np.testing.assert_almost_equal(
         bm.cos(-2*np.pi), np.cos(-2*np.pi), decimal=8)
예제 #6
0
 def test_cos_scalar_1(self):
     a = np.random.rand()
     np.testing.assert_almost_equal(bm.cos(a), np.cos(a), decimal=8)