On Wed, 21 Aug 2019 at 11:50, David Bailey <d...@dbailey.co.uk> wrote:
>
> On 20/08/2019 21:10, Aaron Meurer wrote:
>
> "TypeError: cannot determine truth value of Relational" generally
> indicates a bug in SymPy. And yes, integrate() should always return
> unevaluated when it can't compute the integral.
>
> I imagine that symbolic integration may be littered by tricky problems of 
> this sort, and I wonder if the integrate code should be wrapped in some sort 
> of exception handler so that it exits and returns unevaluated.

I think that would hide all kinds of bugs. It's better to see the
exception and fix the code. Maybe after that check (if it didn't
raise) something more useful could be done than return unevaluated.

Oscar

-- 
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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAHVvXxTn1Qm0kOO%3DAbO3mFPPb-GgWG%3D0Zr6pk2tenf21jJsy7w%40mail.gmail.com.

Reply via email to