def testArithmetic(self): r = sf.tick(np.array([1]),np.array([1]),lambda t,y:2*t-y,2**0.5,trans=self.trans) self.assertAlmostEqual(r.sum(), 2000)
def testDivideZero(self): r = sf.tick(np.array([1]),np.array([0]),lambda t,y:t/y,1,trans=self.trans) self.assertAlmostEqual(r.sum(),1510)