Re: [sympy] Wrong answer

2024-07-21 Thread Oscar Benjamin
Thanks. This is a bug so best to open a GitHub issue: https://github.com/sympy/sympy/issues If you use rational numbers rather than floats it gives the correct answer: In [9]: print(dsolve(nsimplify(ode), y)) Eq(y(x), (C1 + C2*x)*exp(-x/2)) In [10]: print(dsolve(ode, y)) Eq(y(x), (C1*sin(5.9894

[sympy] Wrong answer

2024-07-21 Thread Tony K B
got wrong answer for this ODE y''+y'+0.25y=0, Out put attached. Correct answer is (c_1+c_2*x)e^{-0.5x}. thank you -- 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

[sympy] Wrong Answer in the sympy.dsolve for ode

2022-04-07 Thread kang li
[image: Snipaste_2022-04-08_02-41-56.png] -- 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