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?