| 5 | 1/1 | 返回列表 |
| 查看: 762 | 回復: 4 | |||
[交流]
【求助】求解常微分方程出現(xiàn)警告,求助
|
|
求解如下微分方程時,出現(xiàn)警告 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]; |
» 搶金幣啦!回帖就可以得到:
+2/130
+1/57
+1/42
+1/41
+1/39
+1/36
+1/35
+1/22
+2/20
+1/17
+1/16
+1/10
+1/10
+1/10
+1/7
+1/5
+1/3
+1/3
+1/3
+1/2
|
我也不知道你那常微分方程組寫得對不對?再核實下。 按照你的方程組形式和初始條件幫你簡化了下,兩三行就可以解決問題了。 --------------------------------------------------------------------------------------------------- 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ā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿085600中科院寧波所276分求調劑 +4 | 材料學257求調劑 2026-03-28 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 303求調劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研]
|
gr哈哈哈 2026-03-28 | 3/150 |
|
|
[考研] 0703化學求調劑 +6 | 丹青奶蓋 2026-03-26 | 8/400 |
|
|
[考研] 0703 化學 求調劑,一志愿山東大學 342 分 +7 | Shern—- 2026-03-28 | 7/350 |
|
|
[考研] 0703化學/290求調劑/本科經(jīng)歷豐富/工科也可 +13 | 丹青奶蓋 2026-03-26 | 15/750 |
|
|
[考研] 化學工程085602 305分求調劑 +25 | RichLi_ 2026-03-25 | 25/1250 |
|
|
[考研] 求化學調劑 +11 | wulanna 2026-03-28 | 11/550 |
|
|
[考研] 332求調劑 +6 | Lyy930824@ 2026-03-29 | 6/300 |
|
|
[考研] 材料與化工272求調劑 +21 | 阿斯蒂芬2004 2026-03-28 | 21/1050 |
|
|
[考研] 275求調劑 +15 | Micky11223 2026-03-25 | 20/1000 |
|
|
[考研] 291求調劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 085600,專業(yè)課化工原理,321分求調劑 +5 | 大饞小子 2026-03-28 | 5/250 |
|
|
[碩博家園] 招收生物學/細胞生物學調劑 +4 | IceGuo 2026-03-26 | 5/250 |
|
|
[考研] 322求調劑 +5 | 舊吢 2026-03-24 | 5/250 |
|
|
[考研] 一志愿上海理工能源動力(085800)310分求調劑 +3 | zhangmingc 2026-03-27 | 4/200 |
|
|
[考研] 308求調劑 +7 | 墨墨漠 2026-03-25 | 7/350 |
|
|
[考研] 081200-11408-276學碩求調劑 +3 | 崔wj 2026-03-26 | 3/150 |
|
|
[考研] 總分322求生物學/生化與分子/生物信息學相關調劑 +5 | 星沉uu 2026-03-26 | 6/300 |
|
|
[考研] 求調劑 +3 | 李李不服輸 2026-03-25 | 3/150 |
|