[英]Solving a second-order boundary value equation on a non-uniform mesh
I have an equation of the form 我有一个等式形式
y'' + a(x) y' + b(x) y = f(x) y(0) = y(1) = 1
where x
is non-uniformly spaced. 其中
x
间距不均匀。
How can I solve this type of second-order boundary value problem in python? 如何解决python中的这种二阶边值问题?
Are you searching for the family of functions [ y x (t)
] where t
is the variable on which you derive y
? 您是否在搜索函数族[y x
(t)
],其中t
是派生y
的变量?
Are your boundary conditions true for all x? 您的边界条件对所有x都是正确的吗?
You might want to look at http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html 您可能要看一下http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.