PDA

查看完整版本 : 转发Euler解决Matlab中的一阶ODE系统


poster
2019-12-04, 21:20
我从二阶ODE中获得了两个一阶ODE:

y(0)=1 y'(0)=-1/3 u1'=u2 u2=u/9-(pi*u1*e^(x/3)*(2u2*sin(pi*x)+pi*u1cos(pi*x)) u1(0)=y(0)=1 u2(0)=y'(0)=-1/3 我的问题是如何建立前锋欧拉?我有这个:

n=[0:0.01:2]; h=2./n;

更多&回答... (https://stackoverflow.com/q/19879637)