Skip to content

Commit

Permalink
Add test for sympy/sympy#9173
Browse files Browse the repository at this point in the history
Fixed in f572eea.
  • Loading branch information
skirpichev committed Feb 20, 2016
1 parent 5c05c44 commit 0dd9b7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sympy/series/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@ def test_exp_product_positive_factors():

def test_issue_8805():
assert series(1, n=8) == 1


def test_issue_9173():
p_0, p_1, p_2, p_3, b_0, b_1, b_2 = symbols('p_0:4, b_0:3')
Q = (p_0 + (p_1 + (p_2 + p_3/y)/y)/y)/(1 + ((p_3/(b_0*y) +
(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)

0 comments on commit 0dd9b7e

Please sign in to comment.