Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Series
New issue 3251 by [email protected]: AttributeError: 'Tuple' object has no
attribute 'limit' with series of hyper
http://code.google.com/p/sympy/issues/detail?id=3251
In [692]: integrate(exp(k*(y**3 - 3*y)), (y, 0, oo), conds='none')
Out[692]:
⎛
-2⋅ⅈ⋅π
-ⅈ⋅π
⎜
──────
────
___ ⎜ 4/3 3 ┌─ ⎛ 1 │ 2⎞ 3
___ 2 2 3 ___ 3
-╲╱ 3 ⋅⎜k ⋅ℯ ⋅Γ(-2/3)⋅Γ(-1/3)⋅ ├─ ⎜ │ k ⎟ + ╲╱ k
⋅besseli(-1/3, 2⋅k)⋅Γ(1/3) ⋅Γ(2/3) + ╲╱ k ⋅ℯ ⋅besseli(1/3,
2⋅k)⋅Γ(-1/3)⋅Γ(1/3)⋅Γ(2/3)⋅Γ
⎝ 1╵ 2 ⎝4/3, 5/3 │ ⎠
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
3
___
6⋅π⋅╲╱
k
⎞ 2⋅ⅈ⋅π
⎟ ─────
⎟ 3
(4/3)⎟⋅ℯ
⎠
─────────────
In [693]: integrate(exp(k*(y**3 - 3*y)), (y, 0, oo), conds='none').series(k)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython-input-693-23e23c86b32a>
in
<module>()
----> 1 integrate(exp(k*(y**3 - 3*y)), (y, 0, oo), conds='none').series(k)
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.py in
series(self, x, x0, n, dir)
2268
2269 if n != None: # nseries handling
-> 2270 s1 = self._eval_nseries(x, n=n, logx=None)
2271 o = s1.getO() or S.Zero
2272 if o:
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/mul.pyc in
_eval_nseries(self, x, n, logx)
1402 def _eval_nseries(self, x, n, logx):
1403 from sympy import powsimp
-> 1404 terms = [t.nseries(x, n=n, logx=logx) for t in self.args]
1405 return powsimp(Mul(*terms).expand(), combine='exp',
deep=True)
1406
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.py in
nseries(self, x, x0, n, dir, logx)
2414 return self.series(x, x0, n, dir)
2415 else:
-> 2416 return self._eval_nseries(x, n=n, logx=logx)
2417
2418 def _eval_nseries(self, x, n, logx):
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/add.pyc in
_eval_nseries(self, x, n, logx)
322
323 def _eval_nseries(self, x, n, logx):
--> 324 terms = [t.nseries(x, n=n, logx=logx) for t in self.args]
325 return Add(*terms)
326
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.py in
nseries(self, x, x0, n, dir, logx)
2414 return self.series(x, x0, n, dir)
2415 else:
-> 2416 return self._eval_nseries(x, n=n, logx=logx)
2417
2418 def _eval_nseries(self, x, n, logx):
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/mul.pyc in
_eval_nseries(self, x, n, logx)
1402 def _eval_nseries(self, x, n, logx):
1403 from sympy import powsimp
-> 1404 terms = [t.nseries(x, n=n, logx=logx) for t in self.args]
1405 return powsimp(Mul(*terms).expand(), combine='exp',
deep=True)
1406
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/expr.py in
nseries(self, x, x0, n, dir, logx)
2414 return self.series(x, x0, n, dir)
2415 else:
-> 2416 return self._eval_nseries(x, n=n, logx=logx)
2417
2418 def _eval_nseries(self, x, n, logx):
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in
_eval_nseries(self, x, n, logx)
399 supported.'''))
400 args = self.args
--> 401 args0 = [t.limit(x, 0) for t in args]
402 if any(t.is_bounded == False for t in args0):
403 from sympy import oo, zoo, nan
AttributeError: 'Tuple' object has no attribute 'limit'
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.