Re: [sympy] Possible bug in integral

2013-08-09 Thread Ondřej Čertík
On Fri, Aug 9, 2013 at 12:03 PM, Manoj Kumar wrote: > Hi, I came across this while working on the lie group methods, Is this a bug > or am I missing something quite obvious? > > r, x = Symbols("r x") > eq = Integral(1/sqrt(a0 + a1*x + a2*x**2 + a3*x**3 + a4*x**4), x) > eq = eq.subs(x, r) > print(e

[sympy] Possible bug in integral

2013-08-09 Thread Manoj Kumar
Hi, I came across this while working on the lie group methods, Is this a bug or am I missing something quite obvious? r, x = Symbols("r x") eq = Integral(1/sqrt(a0 + a1*x + a2*x**2 + a3*x**3 + a4*x**4), x) eq = eq.subs(x, r) print(eq.doit()) x/sqrt(a0 + a1*r + a2*r**2 + a3*r**3 + a4*r**4) This