예제 #1
0
 def test_cumtrapz_3(self):
     import scipy.integrate
     y = np.random.randn(100)
     dx = np.random.rand()
     np.testing.assert_almost_equal(bm.cumtrapz(y, dx=dx),
                                    scipy.integrate.cumtrapz(y, dx=dx),
                                    decimal=8)
예제 #2
0
 def test_cumtrapz_3(self):
     import scipy.integrate
     y = np.random.randn(100)
     dx = np.random.rand()
     np.testing.assert_almost_equal(bm.cumtrapz(y, dx=dx),
                                    scipy.integrate.cumtrapz(y, dx=dx),
                                    decimal=8)
예제 #3
0
 def test_cumtrapz_1(self):
     import scipy.integrate
     y = np.random.randn(100)
     initial = np.random.rand()
     np.testing.assert_almost_equal(bm.cumtrapz(y, initial=initial),
                                    scipy.integrate.cumtrapz(
                                        y, initial=initial),
                                    decimal=8)
예제 #4
0
 def test_cumtrapz_1(self):
     import scipy.integrate
     y = np.random.randn(100)
     initial = np.random.rand()
     np.testing.assert_almost_equal(bm.cumtrapz(y, initial=initial),
                                    scipy.integrate.cumtrapz(
                                        y, initial=initial),
                                    decimal=8)