Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Evalf EasyToFix

New issue 3808 by [email protected]: Calling .evalf() on indefinite integral throws an exception
http://code.google.com/p/sympy/issues/detail?id=3808

I get this traceback:

from sympy import Integral
from sympy.abc import x
Integral(x, x).evalf()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/core/evalf.py", line 1280, in evalf
    result = evalf(self, prec + 4, options)
  File "sympy/core/evalf.py", line 1180, in evalf
    r = rf(x, prec, options)
  File "sympy/core/evalf.py", line 954, in evalf_integral
    result = do_integral(expr, workprec, options)
  File "sympy/core/evalf.py", line 865, in do_integral
    x, xlow, xhigh = expr.args[1]
ValueError: need more than 1 value to unpack

We need to check the limits of integration and raise NotImplementedError for indefinite integrals, then proceed to calling do_integral only for definite integrals. evalf_sum already seems to do this correctly.

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to