Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 4050 by [email protected]: integrate((3*x - 5)**2/(2*x - 1)**(7/2), x) _CoeffExpValueError
http://code.google.com/p/sympy/issues/detail?id=4050

Correct answer is (-41 + 80*x - 45*x**2)/(5*(2*x-1)**Rational(5/2))

integrate((3*x - 5)**2/(2*x - 1)**(7/2), x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
File "/home/pape/sympy/sympy/utilities/decorator.py", line 35, in threaded_func
    return func(expr, *args, **kwargs)
File "/home/pape/sympy/sympy/integrals/integrals.py", line 1628, in integrate
    risch=risch, manual=manual)
  File "/home/pape/sympy/sympy/integrals/integrals.py", line 894, in doit
    conds=conds)
File "/home/pape/sympy/sympy/integrals/integrals.py", line 1282, in _eval_integral
    h = meijerint_indefinite(g, x)
File "/home/pape/sympy/sympy/integrals/meijerint.py", line 1597, in meijerint_indefinite
    res = _meijerint_indefinite_1(f.subs(x, x + a), x)
File "/home/pape/sympy/sympy/integrals/meijerint.py", line 1612, in _meijerint_indefinite_1
    gs = _rewrite1(f, x)
File "/home/pape/sympy/sympy/integrals/meijerint.py", line 1549, in _rewrite1
    g = _rewrite_single(g, x, recursive)
  File "/home/pape/sympy/sympy/core/cache.py", line 93, in wrapper
    r = func(*args, **kw_args)
File "/home/pape/sympy/sympy/integrals/meijerint.py", line 1455, in _rewrite_single
    exponents_only=True), x)
File "/home/pape/sympy/sympy/integrals/meijerint.py", line 319, in _get_coeff_exp
    raise _CoeffExpValueError('expr not of form a*x**b: %s' % expr)
sympy.integrals.meijerint._CoeffExpValueError: expr not of form a*x**b: 0.0155061879258435


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to