Skip to content

Commit

Permalink
Add test for sympy/sympy#9549
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Feb 23, 2016
1 parent fb411d5 commit 88bdefa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sympy/series/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,10 @@ def test_issue_9173():
(b_0*p_2 - b_1*p_3)/b_0**2)/y + (b_0**2*p_1 - b_0*b_1*p_2 -
p_3*(b_0*b_2 - b_1**2))/b_0**3)/y)
assert Q.series(y, n=3) == b_2*y**2 + b_1*y + b_0 + O(y**3)


def test_issue_9549():
e = (x**2 + x + 1)/(x**3 + x**2)
r = e.series(x, oo)
assert r == x**(-5) - 1/x**4 + x**(-3) + 1/x + O(x**(-6), (x, oo))
assert e.series(x, oo, n=8) + O(1/x**6, (x, oo)) == r

0 comments on commit 88bdefa

Please sign in to comment.