I've opened an issue: https://github.com/sympy/sympy/issues/17473
On Wed, 21 Aug 2019 at 12:11, Oscar Benjamin <oscar.j.benja...@gmail.com> wrote: > > 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/CAHVvXxSd%2BqshV%2BYPmd0yXbi58rrMNg0Dsrwzwn44T_has4vUEQ%40mail.gmail.com.