-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
As of f74ad72:
In [1]: polylog(S(3)/2, -z).series(z, 0, 5)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-cb514b271258> in <module>()
----> 1 polylog(S(3)/2, -z).series(z, 0, 5)
/home/ondrej/repos/sympy/sympy/core/expr.py in series(self, x, x0, n, dir, logx)
2474 # replace x with an x that has a positive assumption
2475 xpos = Dummy('x', positive=True, finite=True)
-> 2476 rv = self.subs(x, xpos).series(xpos, x0, n, dir, logx=logx)
2477 if n is None:
2478 return (s.subs(xpos, x) for s in rv)
/home/ondrej/repos/sympy/sympy/core/expr.py in series(self, x, x0, n, dir, logx)
2481
2482 if n is not None: # nseries handling
-> 2483 s1 = self._eval_nseries(x, n=n, logx=logx)
2484 o = s1.getO() or S.Zero
2485 if o:
/home/ondrej/repos/sympy/sympy/core/function.py in _eval_nseries(self, x, n, logx)
599 #let's try the general algorithm
600 term = e.subs(x, S.Zero)
--> 601 if term.is_finite is False or term is S.NaN:
602 raise PoleError("Cannot expand %s around 0" % (self))
603 series = term
AttributeError: 'int' object has no attribute 'is_finite'