Пример #1
0
 def test_trapz_3(self):
     y = np.random.randn(100)
     np.testing.assert_almost_equal(bm.trapz(y, dx=0.1),
                                    np.trapz(y, dx=0.1),
                                    decimal=8)
Пример #2
0
 def test_trapz_3(self):
     y = np.random.randn(100)
     np.testing.assert_almost_equal(bm.trapz(y, dx=0.1),
                                    np.trapz(y, dx=0.1), decimal=8)
Пример #3
0
 def test_trapz_2(self):
     y = np.random.randn(100)
     x = np.random.rand(100)
     np.testing.assert_almost_equal(bm.trapz(y, x=x),
                                    np.trapz(y, x=x),
                                    decimal=8)
Пример #4
0
 def test_trapz_2(self):
     y = np.random.randn(100)
     x = np.random.rand(100)
     np.testing.assert_almost_equal(bm.trapz(y, x=x),
                                    np.trapz(y, x=x), decimal=8)