Modified order.py #19546
References to other Issues or PRs Fixes sympy#19545 Brief description of what is fixed or changed The code `Order(1/n - 3/(3*n +2), (n, oo))` returns `1/n`, which is not a sharp result. As a consequence `Sum(1/n - 3/(3*n +2), (n, 1, oo)).is_convergent()` gives the wrong result `False`. In the lines 208-214 of `order.py`, if the number of variables are >= 2, then the expression is expanded and is handled in `expr.is_Add` case. However in the case of a single variable, the alghorithm for the other case seems better. Factorizing the expression forces to use the better alghoritm in the case of a single variable. See also PR#18340 On branch issue-19545 Changes to be committed: modified: sympy/concrete/tests/test_sums_products.py modified: sympy/series/order.py modified: sympy/series/tests/test_order.py
Your release notes are in good order.
Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.7.
Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it.
Click here to see the pull request description that was parsed.
The release notes on the wiki have been updated.
@@ Coverage Diff @@ ## master #19546 +/- ## ============================================= + Coverage 75.664% 75.757% +0.093% ============================================= Files 654 654 Lines 169939 170565 +626 Branches 40065 40423 +358 ============================================= + Hits 128583 129216 +633 + Misses 35740 35739 -1 + Partials 5616 5610 -6