Re: [sympy] Should symbolic integration fail gracefully?

2019-08-22 Thread Oscar Gustafsson
The bug was fixed in https://github.com/sympy/sympy/pull/17343 but is not merged (yet). Hopefully it happens soon. BR Oscar Den ons 21 aug. 2019 20:33Aaron Meurer skrev: > On Wed, Aug 21, 2019 at 3:10 AM David Bailey wrote: > > > > On 20/08/2019 23:35, Oscar Benjamin wrote: > > > > Hi

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-21 Thread Aaron Meurer
On Wed, Aug 21, 2019 at 3:10 AM David Bailey wrote: > > On 20/08/2019 23:35, Oscar Benjamin wrote: > > Hi David, > > Can you open an issue on Github please. That's a bug that should be fixed. > > The problem is, I tried to join Github a while back, and then needed a > password reset. It said it

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-21 Thread Oscar Benjamin
I've opened an issue: https://github.com/sympy/sympy/issues/17473 On Wed, 21 Aug 2019 at 12:11, Oscar Benjamin wrote: > > On Wed, 21 Aug 2019 at 11:50, David Bailey wrote: > > > > On 20/08/2019 21:10, Aaron Meurer wrote: > > > > "TypeError: cannot determine truth value of Relational" generally

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-21 Thread Oscar Benjamin
On Wed, 21 Aug 2019 at 11:50, David Bailey 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

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-21 Thread David Bailey
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

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-21 Thread David Bailey
On 20/08/2019 23:35, Oscar Benjamin wrote: Hi David, Can you open an issue on Github please. That's a bug that should be fixed. The problem is, I tried to join Github a while back, and then needed a password reset. It said it had sent me an email to reset my password, but it never appeared

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-20 Thread Oscar Benjamin
Hi David, Can you open an issue on Github please. That's a bug that should be fixed. Oscar On Tue, 20 Aug 2019 at 21:08, 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

Re: [sympy] Should symbolic integration fail gracefully?

2019-08-20 Thread Aaron Meurer
"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. Aaron Meurer On Tue, Aug 20, 2019 at 2:08 PM David Bailey wrote: > > It seems as though the symbolic integration

[sympy] Should symbolic integration fail gracefully?

2019-08-20 Thread David Bailey
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 "", line 1, in   File "C:\SymPyWorkbook\lib\site-packages\sympy\integrals\integrals.py", line 1477, in integrate     return