Comment #3 on issue 1471 by ondrej.certik: integrate(1/(x**3+1),(x,0,oo))
return an expression with x
http://code.google.com/p/sympy/issues/detail?id=1471
I applied the following patch:
diff --git a/sympy/series/limits.py b/sympy/series/limits.py
index 5e3c4f0..b53b18f 100644
--- a/sympy/series/limits.py
+++ b/sympy/series/limits.py
@@ -69,7 +69,6 @@ def limit(e, z, z0, dir="+"):
# this is a case like limit(x*y+x*z, z, 2) == x*y+2*x
# but we need to make sure, that the general gruntz()
algorithm is
# executed for a case like "limit(sqrt(x+1)-sqrt(x),x,oo)==0"
- results = [term.subs(z, z0) for term in e.args]
unbounded = []
finite = []
for term in e.args:
@@ -82,8 +81,9 @@ def limit(e, z, z0, dir="+"):
if unbounded:
return Add(*finite) + limit(Add(*unbounded), z, z0,
dir)
else:
+ results = [term.subs(z, z0) for term in e.args]
return Add(*results)
-
+
try:
r = gruntz(e, z, z0, dir)
(there was a white space error too above), the combined patch is attached.
Tell me your full name + email that you want in the patch (or just commit
it with
"git ci --amend --author="name <email>")
Attachments:
0001-Compute-the-finite-parts-of-the-limit-of-a-sum-by-di.patch 2.3 KB
--
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
-~----------~----~----~----~------~----~------~--~---