Python version: 3.13.1 (main, Dec 4 2024, 18:05:56) [GCC 14.2.1 20240910]
Sympy version 1.13.3
This ode gives error
------------------------------------------------
from sympy import *
x = symbols("x")
A,B,G = symbols("A B G")
y = Function("y")
ode = Eq(-A*B*y(x) + x*(1 - x)*Derivative(y(x), (x, 2)) + (G - x*(A + B +
1))*Derivative(y(x), x),0)
dsolve(ode,func=y(x))
------------------------------------------
ValueError: Expected Expr or iterable but got None
But if I replace G above with 1, it works
ode = Eq(-A*B*y(x) + x*(1 - x)*Derivative(y(x), (x, 2)) + (1 - x*(A + B +
1))*Derivative(y(x), x),0)
dsolve(ode,func=y(x))
No error. This looks like a bug?
--Nasser
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/sympy/da11b967-3ae5-4640-977c-0210822a66bfn%40googlegroups.com.