24小时热门版块排行榜    

查看: 800  |  回复: 14

芝芝花

铜虫 (初入文坛)

[求助] 求解微分方程

求解微分方程。 急!




当t=0时,X=0,Y=0,S=1
dX/dt=[4.36S(1-X)-1.61XY]/(5.8X+1.8Y+15.2S+29.8)
dY/dt=dX/dt-2.26Y/(Y+2S)
2dS/dt=-dX/dt-0.012S/(Y+2S)[ Last edited by dbb627 on 2011-11-16 at 16:00 ]
回复此楼

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

芝芝花(金币+5): 2011-11-16 17:24:32
CODE:
odefun=@(t,x)[(4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8);...
     (4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8)-2.26*x(2)/(x(2)+2*x(3));...
     -0.5*(4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8)-0.006*x(3)/(x(2)+2*x(3))];
[t,x]=ode45(odefun,[0 10],[0 0 1]);
plot(t,x)
legend('t-X','t-Y','t-S')



The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
2楼2011-11-16 16:22:28
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

抱歉哈,还是刚才的方程,改一下数据
3楼2011-11-16 17:25:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

dX/dt=[8.94S(1-X)-3.31XY]/(0.58X+0.18Y+1.5S+2.98)
dY/dt=dX/dt-2.26Y/(Y+2S)
2dS/dt=-dX/dt-0.012S/(Y+2S)
当t=0时,X=0,Y=0,S=1
t的最大值为3
请求再帮忙计算下,多谢了!
4楼2011-11-16 17:28:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

引用回帖:
4楼: Originally posted by 芝芝花 at 2011-11-16 17:28:23:
dX/dt=[8.94S(1-X)-3.31XY]/(0.58X+0.18Y+1.5S+2.98)
dY/dt=dX/dt-2.26Y/(Y+2S)
2dS/dt=-dX/dt-0.012S/(Y+2S)
当t=0时,X=0,Y=0,S=1
t的最大值为3
请求再帮忙计算下,多谢了!

都给代码了,你不会自己改啊
odefun=@(t,x)[(4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8);...
     (4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8)-2.26*x(2)/(x(2)+2*x(3));...
     -0.5*(4.36*x(3)*(1-x(1))-1.61*x(1)*x(2))/(5.8*x(1)+1.8*x(2)+15.28*x(3)+29.8)-0.006*x(3)/(x(2)+2*x(3))];
[t,x]=ode45(odefun,[0 3],[0 0 1]);
plot(t,x)
legend('t-X','t-Y','t-S')


The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
5楼2011-11-16 18:51:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

谢谢你哈,不过除了t的最大值外,我第一个方程的数据改了的哟,dX/dt=[8.94S(1-X)-3.31XY]/(0.58X+0.18Y+1.5S+2.98)不好意思,
6楼2011-11-16 19:00:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

送鲜花一朵
还得请求算一下
7楼2011-11-16 19:02:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

好的,我真是愚蠢,我知道了4.36*x(3)意思是4.36乘以X的三次方吗
8楼2011-11-16 19:15:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

不是 X=x(1) Y=x(2) S=x(3)
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
9楼2011-11-16 19:18:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

芝芝花

铜虫 (初入文坛)

我还是不会算,不懂代码的意思,x与t的函数关系还是不知道,求救!
10楼2011-11-16 19:21:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 芝芝花 的主题更新
信息提示
请填处理意见