Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@ place. Ondřej Čertík is still active in the community but is too busy
with work and family to play a lead development role.

Since then, a lot more people have joined the development and some
people have also left. You can see the full list in doc/src/aboutus.rst,
or online at:

<https://docs.sympy.org/dev/aboutus.html#sympy-development-team>
people have also left. You can see the full list in doc/src/aboutus.rst.

The git history goes back to 2007 when development moved from svn to hg.
To see the history before that point, look at
Expand Down
6 changes: 4 additions & 2 deletions sympy/core/mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,17 +1959,19 @@ def coeff_exp(term, x):
lt = term.leadterm(x)
except ValueError:
return term, S.Zero
except PoleError:
return term, S.Zero
return lt

ords = []

try:
for t in self.args:
coeff, exp = t.leadterm(x)
coeff, exp = coeff_exp(t, x) # changed from leadterm to coeff_exp
if not coeff.has(x):
ords.append((t, exp))
else:
raise ValueError
raise ValueError("Leading coefficient has a x within it.")

n0 = sum(t[1] for t in ords if t[1].is_number)
facs = []
Expand Down
12 changes: 12 additions & 0 deletions sympy/series/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,15 @@ def test_issue_24266():

def test_issue_26856():
raises(ValueError, lambda: (2**x).series(x, oo, -1))

def test_issue_27109():
from sympy import symbols, exp, sqrt, pi, oo, erf, series

x = symbols('x', positive=True)

f2 = 2 * erf(x)
s2 = series(f2, x, x0=oo, n=3)

expected_s2 = -((2 / x) + O(x**(-3), (x, oo))) * (exp(-x**2) / sqrt(pi)) + 2

assert s2.equals(expected_s2)