Comment #5 on issue 1471 by [email protected]:
integrate(1/(x**3+1),(x,0,oo)) return an expression with x
http://code.google.com/p/sympy/issues/detail?id=1471
Oops! The 'results' list was a leftover from my initial draft. More
importantly, I
realised that I had introduced a severe performance regression in some
cases.
Before:
In [3]: %timeit limit(exp(x)+exp(x**2), x, oo)
1000 loops, best of 3: 350 µs per loop
In [4]: %timeit limit(exp(x)+exp(x**2) + 1/x, x, oo)
1000 loops, best of 3: 235 µs per loop
In [5]: %timeit limit(exp(x), x, oo)
100 loops, best of 3: 8.72 ms per loop
With the previous version:
In [3]: %timeit limit(exp(x)+exp(x**2), x, oo)
10 loops, best of 3: 24.8 ms per loop
In [4]: %timeit limit(exp(x)+exp(x**2) + 1/x, x, oo)
10 loops, best of 3: 25 ms per loop
In [5]: %timeit limit(exp(x), x, oo)
100 loops, best of 3: 8.79 ms per loop
With the new version:
In [3]: %timeit limit(exp(x)+exp(x**2), x, oo)
1000 loops, best of 3: 197 µs per loop
In [4]: %timeit limit(exp(x)+exp(x**2) + 1/x, x, oo)
1000 loops, best of 3: 271 µs per loop
In [5]: %timeit limit(exp(x), x, oo)
100 loops, best of 3: 8.8 ms per loop
Attachments:
0001-Compute-the-finite-parts-of-the-limit-of-a-sum-by-di.patch 2.4 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
-~----------~----~----~----~------~----~------~--~---