It's hard to tell without seeing the code. What you wrote should work. Aaron Meurer
On Jul 7, 2012, at 5:44 AM, Saurabh Jha <saurabh.j...@gmail.com> wrote: > Hi, > > I implemented a Delta() function as a part of my project of > implementation of Kauers' algorithm > > It takes as input function expression and returns the difference > between final value(function's expression incremented to 1) and > initial value (function's expression) > . > I saved the changes and ran it from sympy at python IDLE as > follows > >>>> Delta(x**2 + 2*x + 1) > 2*x + 3 > > But when I wrote the tests as > > assert Delta(x**2 + 2*x + 1) == 2*x + 3 > > it printed assertion error > > The tests diden't passed. I don't know what's the differenece between > the two situations, please help me figure it out > > -Saurabh Jha > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.