We should have, for example, `if (b < 0) == True or ...` here
  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):
Kalevi Suominen

On Tuesday, August 20, 2019 at 11:08:59 PM UTC+3, David Bailey wrote:
>
> 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/c669629a-c2d2-44e0-9bc3-ba37d2964a3b%40googlegroups.com.

Reply via email to