Comment #10 on issue 4108 by [email protected]: Order at oo is wrong
http://code.google.com/p/sympy/issues/detail?id=4108

This seems sufficient:

diff --git a/sympy/series/order.py b/sympy/series/order.py
index a981f48..7c15d47 100644
--- a/sympy/series/order.py
+++ b/sympy/series/order.py
@@ -139,7 +139,8 @@ def __new__(cls, expr, *symbols):
                 expr = Add(*[f.expr for (e, f) in lst])

             elif expr:
-                expr = expr.as_leading_term(*symbols)
+                if point == S.Zero:
+                    expr = expr.as_leading_term(*symbols)
                 expr = expr.as_independent(*symbols, as_Add=False)[1]

                 expr = expand_power_base(expr)


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to