- 积分
- 15
- 注册时间
- 2008-7-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2009-12-23 09:04:26
|
显示全部楼层
来自 黑龙江哈尔滨
2阶方程只需要两个个初始条件。
扔掉beta'''(0)=0,用其他两个初始条件接,mmtc和maple结果都说:该方程在t=0.9...出无解,即改点是奇异点。
第二个图是隐式的解析解和6阶级数解
不会用matlab,不知道你 ...
TBE_Legend 发表于 2009-12-22 21:50
照猫画虎,用了下matlab。
- clear all
- clc
- M=[1 0 0;0 1 0;0 0 0]
- y0=[1,0,0]
- tspan=[0,0.9]
- options=odeset('Mass',M,'RelTol',1e-4,'AbsTol',[1e-6 1e-10 1e-6],'Vectorized','on')
- [t,y]=ode15s(@f,tspan,y0,options)
- subplot(3,1,1),plot(t,y(:,1),'-r','LineWidth',1.5),ylabel('b'),grid on;
- subplot(3,1,2);plot(t,y(:,2),'-b','LineWidth',1.5);ylabel('db'),grid on;
- subplot(3,1,3);plot(t,y(:,3),'-m','LineWidth',1.5);ylabel('dbb'),grid on;
- % ------------ function f -----------------
- function out=f(t,y);
- out=[y(2,:)
- y(3,:)
- y(1,:).*y(3,:)+3/2*y(2,:).^2+1];
- %------------------------------------------
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|