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 8, 2024
1 parent 975e07c commit 181bd23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions diofant/tests/integrals/test_integrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1579,3 +1579,10 @@ def test_sympyissue_26504():

def test_sympyissue_26506():
integrate(log(x**2 + x - 1)**2/x**3, x) # not raises


def test_sympyissue_26566():
a = symbols('a', real=True, positive=True)

assert integrate(sin(a*(x + pi))**2,
(x, -pi, -pi/2)) == (pi*a - sin(pi*a))/(4*a)
1 change: 1 addition & 0 deletions docs/release/notes-0.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ These Sympy issues also were addressed:
* :sympyissue:`26502`: lots of PolynomialError contains an element of the set of generators exceptions calling integrate in sympy 1.12
* :sympyissue:`14069`: Condition for TODO in zeta_functions.py is now satisfied
* :sympyissue:`25931`: Possible improvements in gruntz
* :sympyissue:`26566`: wrong result integrating sin(a*(x+pi))**2

0 comments on commit 181bd23

Please sign in to comment.