Re: [sympy] expressing f(x)/g(x) as a polynomial

2017-12-28 Thread gosia olejniczak
Dear Aaron, Thank you for your message and explanation! I opened an issue: https://github.com/sympy/sympy/issues/13805 and pasted your comments there; best wishes, gosia 2017-12-23 4:46 GMT+01:00 Aaron Meurer : > I would consider this to be a bug in det(). It should try to compute > it in such a

[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] solve system ode --> TypeError: cannot determine truth value of Relational

2017-12-28 Thread Dabitto
Hello, I have the following script . import sympy as sym i, r1, c1, r2, c2, t = sym.symbols('i, r1, c1, r2, c2, t' ) x1 = sym.Function('x1') x2 = sym.Function('x2') eq1 = r1*c1*sym.Derivative(x1(t),t) + x1(t) - x2(t) - r1*i eq2 = r2*c1*sym.Derivative(x1(t),t) + r2*c2*sym.Derivative(x2(t),t) + x