Status: Valid
Owner: ----
CC: [email protected]
Labels: Type-Defect Priority-Medium Integration
New issue 3238 by [email protected]: integrate(abs(x), x) error in master
http://code.google.com/p/sympy/issues/detail?id=3238
In [145]: integrate(abs(x), x)
---------------------------------------------------------------------------
_CoeffExpValueError Traceback (most recent call last)
/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython-input-145-c57e31024649>
in
<module>()
----> 1 integrate(abs(x), x)
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/utilities/decorator.pyc
in
threaded_func(expr, *args, **kwargs)
23 func(expr.rhs, *args,
**kwargs))
24 else:
---> 25 return func(expr, *args, **kwargs)
26
27 return threaded_func
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/integrals.py
in
integrate(*args, **kwargs)
1342
1343 if isinstance(integral, Integral):
-> 1344 return integral.doit(deep = False, meijerg = meijerg, conds
= conds)
1345 else:
1346 return integral
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/integrals.py
in
doit(self, **hints)
722 antideriv = None
723 else:
--> 724 antideriv = self._eval_integral(function, xab[0],
meijerg1)
725 if antideriv is None and meijerg1 is True:
726 ret = try_meijerg(function, xab)
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/integrals.py
in
_eval_integral(self, f, x, meijerg)
1002 # rewrite using G functions
1003 try:
-> 1004 h = meijerint_indefinite(g, x)
1005 except NotImplementedError:
1006 from sympy.integrals.meijerint import _debug
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/meijerint.pyc
in
meijerint_indefinite(f, x)
1492 results = []
1493 for a in list(_find_splitting_points(f, x)) + [S(0)]:
-> 1494 res = _meijerint_indefinite_1(f.subs(x, x + a), x)
1495 if res is None:
1496 continue
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/meijerint.pyc
in
_meijerint_indefinite_1(f, x)
1506 _debug('Trying to compute the indefinite integral of',
f, 'wrt', x)
1507
-> 1508 gs = _rewrite1(f, x)
1509 if gs is None:
1510 # Note: the code that calls us will do expand() and try
again
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/meijerint.pyc
in
_rewrite1(f, x, recursive)
1448 """
1449 fac, po, g = _split_mul(f, x)
-> 1450 g = _rewrite_single(g, x, recursive)
1451 if g:
1452 return fac, po, g[0], g[1]
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/cache.pyc in
wrapper(*args, **kw_args)
89 except KeyError:
90 pass
---> 91 func_cache_it_cache[k] = r = func(*args, **kw_args)
92 return r
93 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/meijerint.pyc
in
_rewrite_single(f, x, recursive)
1359 for fac, g in terms:
1360 r1 =
_get_coeff_exp(unpolarify(fac.subs(subs).subs(z, x),
-> 1361
exponents_only=True), x)
1362 g = g.subs(subs).subs(z, x)
1363 # NOTE these substitutions can in principle
introduce oo,
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/integrals/meijerint.pyc
in
_get_coeff_exp(expr, x)
286 return c, S(1)
287 else:
--> 288 raise _CoeffExpValueError('expr not of form a*x**b: %s' %
expr)
289
290 def _exponents(expr, x):
_CoeffExpValueError: expr not of form a*x**b: nan
--
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.