It seems as though the symbolic integration process fails when it can't find a solution:

 integrate(sin(x**n),x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\integrals.py", line 1477, in integrate
    return integral.doit(**doit_flags)
  File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\integrals.py", line 541, in doit
    function, xab[0], **eval_kwargs)
  File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\integrals.py", line 1012, in _eval_integral
    h = meijerint_indefinite(g, x)
  File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\meijerint.py", line 1621, in meijerint_indefinite
    res = _meijerint_indefinite_1(f.subs(x, x + a), x)
  File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\meijerint.py", line 1684, in _meijerint_indefinite_1
    if b < 0 or f.subs(x, 0).has(nan, zoo):
  File "C:\SymPyWorkbook\lib\site-packages\sympy\core\relational.py", line 304, in __nonzero__
    raise TypeError("cannot determine truth value of Relational")
TypeError: cannot determine truth value of Relational

I suppose I expected it to return an unevaluated integral - integral(sin(x**n),x)

David

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b15c771c-5051-225d-bd0d-a655b6952de0%40dbailey.co.uk.

Reply via email to