Issue 693: wrong limit
http://code.google.com/p/sympy/issues/detail?id=693

Comment #11 by ondrej.certik:
Here is the patch fixing the real problem is really simple:

diff --git a/sympy/core/add.py b/sympy/core/add.py
index 0a86dbb..7e3c9cb 100644
--- a/sympy/core/add.py
+++ b/sympy/core/add.py
@@ -325,14 +325,14 @@ class Add(AssocOp):
          seq = [(f, C.Order(f, *symbols)) for f in self.args]
          for ef,of in seq:
              for e,o in lst:
-                if o.contains(of):
+                if o.contains(of) and o != of:
                      of = None
                      break
              if of is None:
                  continue
              new_lst = [(ef,of)]
              for e,o in lst:
-                if of.contains(o):
+                if of.contains(o) and o != of:
                      continue
                  new_lst.append((e,o))
              lst = new_lst

But read the comment c16 in the issue 991 to see how many tests fail. I  
think it
triggers a lot of other bugs that also need to be fixed.

Deferring.


Issue attribute updates:
        Labels: -Milestone-Release0.6.3

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to