Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed May 9, 2024
1 parent 5219d2b commit d401ab6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions diofant/tests/polys/test_polytools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3403,3 +3403,9 @@ def test_sympyissue_26497():

assert expr.factor() == expr2
assert expr.subs({a_n: 1, m: 1}) == expr2.subs({a_n: 1, m: 1}) == 12*I

# issue sympy/sympy#26577
assert expr.cancel().factor() == expr2
expr3 = -(a_n - I)**2*(a_n**2 + m**2 + 2*m + 2)
assert expr.cancel(extension=True).factor(extension=True) == expr3
assert expr.factor(extension=True) == expr3
1 change: 1 addition & 0 deletions docs/release/notes-0.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ These Sympy issues also were addressed:
* :sympyissue:`25931`: Possible improvements in gruntz
* :sympyissue:`26566`: wrong result integrating sin(a*(x+pi))**2
* :sympyissue:`26571`: integrate((x**8+1)**(-1/2),x) raises _CoeffExpValueError
* :sympyissue:`26577`: factor should use the same domain for numerator and denominator

0 comments on commit d401ab6

Please sign in to comment.