Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Apr 29, 2022
1 parent 9ce69a1 commit 6d58492
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions diofant/tests/series/test_series.py
Expand Up @@ -294,3 +294,10 @@ def test_sympyissue_22493():
h**2*(f(x, y).diff((x, 2)) + 2*f(x, y).diff(y, x) +
f(x, y).diff((y, 2)))/2 + O(h**3))
assert f(x - h, y - h).series(h, x0=0, n=3).simplify() == res


def test_sympyissue_23432():
e = 1/sqrt(1 - x**2)
ans = e.series(x, x0=Rational(1, 2), n=1)
assert ans == 2*sqrt(3)/3 + O(x - Rational(1, 2), (x, Rational(1, 2)))
assert ans.removeO().evalf() == e.series(x, x0=0.5, n=1).removeO()
1 change: 1 addition & 0 deletions docs/release/notes-0.14.rst
Expand Up @@ -81,3 +81,4 @@ These Sympy issues also were addressed:
* :sympyissue:`23319`: testing limit of n*tan(pi/n) results in incorrect answer in 1.7rc1+
* :sympyissue:`5539`: Equal Integrals compare different when using different variables
* :sympyissue:`23425`: PolynomialError when I try to call classify_ode
* :sympyissue:`23432`: Series expansion around float fails with NotImplementedError

0 comments on commit 6d58492

Please sign in to comment.