Exemplo n.º 1
0
 def test_sin_vector_1(self):
     a = np.random.randn(100)
     np.testing.assert_almost_equal(bm.sin(a), np.sin(a), decimal=8)
Exemplo n.º 2
0
 def test_sin_scalar_2(self):
     np.testing.assert_almost_equal(bm.sin(-np.pi),
                                    np.sin(-np.pi),
                                    decimal=8)
Exemplo n.º 3
0
 def test_sin_scalar_1(self):
     a = np.random.rand()
     np.testing.assert_almost_equal(bm.sin(a), np.sin(a), decimal=8)
Exemplo n.º 4
0
 def test_sin_vector_1(self):
     a = np.random.randn(100)
     np.testing.assert_almost_equal(bm.sin(a), np.sin(a), decimal=8)
Exemplo n.º 5
0
 def test_sin_scalar_2(self):
     np.testing.assert_almost_equal(
         bm.sin(-np.pi), np.sin(-np.pi), decimal=8)
Exemplo n.º 6
0
 def test_sin_scalar_1(self):
     a = np.random.rand()
     np.testing.assert_almost_equal(bm.sin(a), np.sin(a), decimal=8)