Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Jul 30, 2022
1 parent 7de5be1 commit 202500a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions diofant/tests/series/test_gruntz.py
Expand Up @@ -458,3 +458,13 @@ def test_issue_75():
def test_sympyissue_8241():
e = x/log(x)**(log(x)/(m*log(log(x))))
assert isinstance(limit(e, x, oo), Limit)


def test_sympyissue_23845():
e = ((-sqrt(5)*(-sqrt(5)/2 + Rational(3, 2))**x +
5*(-sqrt(5)/2 + Rational(3, 2))**x +
(sqrt(5)/2 + Rational(3, 2))**x*(sqrt(5) + 5)) /
(-3*sqrt(5)*(-sqrt(5)/2 + Rational(3, 2))**x +
5*(-sqrt(5)/2 + Rational(3, 2))**x +
(5 + 3*sqrt(5))*(sqrt(5)/2 + Rational(3, 2))**x))
assert limit(e, x, oo) == (sqrt(5) + 5)/(5 + 3*sqrt(5))
1 change: 1 addition & 0 deletions docs/release/notes-0.14.rst
Expand Up @@ -94,3 +94,4 @@ These Sympy issues also were addressed:
* :sympyissue:`22605`: Incorrect result from minpoly(cos(pi/9))
* :sympyissue:`23677`: minimal_polynomial fails for very complicated algebraic number
* :sympyissue:`23836`: Incorrect results for limits of Piecewise at discontinuity
* :sympyissue:`23845`: Gruntz should have been free of _w, value error, recursion error

0 comments on commit 202500a

Please sign in to comment.