[sympy] Re: solve system ode --> TypeError: cannot determine truth value of Relational

2017-12-28 Thread Leonid Kovalev
The problem is that the solver needs to know the sign of a certain expression in terms of the coefficients (the discriminant of a polynomial), and it cannot determine the sign based on the information given, as the discriminant ends up being `D = (1/(c2*r2) - 1/(c1*r1))**2`. Symbols are not aut

[sympy] Re: solve system ode --> TypeError: cannot determine truth value of Relational

2017-12-29 Thread Dabitto
Hi Leonid, Thank you for spending time for my problem. Your answer is very clear. Regards, Dabitto Le jeudi 28 décembre 2017 19:48:05 UTC+1, Leonid Kovalev a écrit : > > The problem is that the solver needs to know the sign of a certain > expression in terms of the coefficients (the discriminant

[sympy] Re: solve system ode --> TypeError: cannot determine truth value of Relational

2017-12-30 Thread Leonid Kovalev
No problem. I spent a bit more time on this problem, and submitted a pull request which adds support for symbolic-coefficient systems like yours. So there's hope some future version of SymPy will handle these. -- You received this message because you