Error from dsolve in sympy 1.13.3

40 views
Skip to first unread message

nma%12...@gtempaccount.com

unread,
Feb 27, 2025, 5:42:50 AM2/27/25
to sympy
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




Reply all
Reply to author
Forward
0 new messages