| 5 | 1/1 | 返回列表 |
| 查看: 746 | 回復: 4 | |||
[交流]
【求助】求解常微分方程出現警告,求助
|
|
求解如下微分方程時,出現警告 Warning: Failure at t=4.893789e-005. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.738623e-019) at time t. 無法得到要求的解區(qū)間,請幫忙分析一下。 Y0=[0.0001; 15.2571]; tspan=[0.4894e-4 0]; [t,YY]=ode23s('DYdt',tspan,Y0); plot(YY(:,1),t) function Yd=DYdt(t,Y) Yd=[Y(2); (1+Y(2)^2)/Y(1)+ 9.4597e+008*(1+Y(2)^2)^1.5]; |
» 搶金幣啦!回帖就可以得到:
+1/253
+5/190
+2/120
+1/99
+1/91
+1/84
+1/40
+1/36
+1/34
+1/32
+1/16
+1/9
+1/9
+1/7
+2/6
+1/5
+1/5
+1/4
+1/3
+1/1
|
我也不知道你那常微分方程組寫得對不對?再核實下。 按照你的方程組形式和初始條件幫你簡化了下,兩三行就可以解決問題了。 --------------------------------------------------------------------------------------------------- function main fun = @(t,Y)[Y(2);(1+Y(2)^2)/Y(1)+9.4597e+08*(1+Y(2)^2)^1.5]; [t,Y] = ode45(fun,[0.4894e-4 0],[0.0001 15.2571]); plot(Y(:,1),Y(:,2)) --------------------------------------------------------------------------------------------------- 但結果同樣遇到問題Warning: Failure at t=4.893789e-005. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.738623e-019) at time t. ------------------------------------------- 分析: 1. 按提示需要減小step size 2. 檢查你的方程和初值條件,如果都沒問題,那么即使warning提示,也不表示一定是錯誤 |
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 081700化工學碩調劑 +3 | 【1】 2026-03-16 | 3/150 |
|
|
[考研] 一志愿北京化工大學0703化學318分,有科研經歷,求調劑 +3 | 一瓶苯甲酸 2026-03-14 | 3/150 |
|
|
[考研] 324分 085600材料化工求調劑 +3 | llllkkkhh 2026-03-18 | 3/150 |
|
|
[考研] 0817調劑 +3 | 沒有答案_ 2026-03-14 | 3/150 |
|
|
[考研] 材料專碩英一數二306 +5 | z1z2z3879 2026-03-18 | 5/250 |
|
|
[考研] 304求調劑 +6 | 司空. 2026-03-18 | 6/300 |
|
|
[考研] 材料工程專碩調劑 +5 | 204818@lcx 2026-03-17 | 6/300 |
|
|
[考研] 330求調劑 +3 | 小材化本科 2026-03-18 | 3/150 |
|
|
[考研] 一志愿西南交大,求調劑 +4 | 材化逐夢人 2026-03-18 | 4/200 |
|
|
[考研] 280求調劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|
[考研] 293求調劑 +11 | zjl的號 2026-03-16 | 16/800 |
|
|
[考研] 326求調劑 +5 | 上岸的小葡 2026-03-15 | 6/300 |
|
|
[考研] 材料與化工專碩調劑 +5 | heming3743 2026-03-16 | 5/250 |
|
|
[論文投稿] 有沒有大佬發(fā)小論文能帶我個二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] 機械專碩325,尋找調劑院校 +3 | y9999 2026-03-15 | 5/250 |
|
|
[考研] 304求調劑 +3 | 曼殊2266 2026-03-14 | 3/150 |
|
|
[考研] 070303 總分349求調劑 +3 | LJY9966 2026-03-15 | 5/250 |
|
|
[考研] 288求調劑 +4 | 奇點0314 2026-03-14 | 4/200 |
|