Skip to content

Commit

Permalink
Merge pull request #1773 from Maihj/doc_expand
Browse files Browse the repository at this point in the history
Issue 3444: Doc for partial fraction decomp needs expanding
  • Loading branch information
jrioux committed Feb 15, 2013
2 parents 332ad86 + 84e6222 commit 6dde28a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sympy/polys/partfrac.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ def apart(f, x=None, full=False, **options):
>>> from sympy.polys.partfrac import apart
>>> from sympy.abc import x, y
By default, using the undetermined coefficients method:
>>> apart(y/(x + 2)/(x + 1), x)
-y/(x + 2) + y/(x + 1)
You can choose the other algorithm by setting full=True:
>>> apart(y/(x**2 + x + 1), x)
y/(x**2 + x + 1)
>>> apart(y/(x**2 + x + 1), x, full=True)
RootSum(x**2 + x + 1, Lambda(_a, (-2*_a*y/3 - y/3)/(-_a + x)))
"""
allowed_flags(options, [])

Expand Down

0 comments on commit 6dde28a

Please sign in to comment.