【mathematica】微分方程求助
出现NDSolve::ndszAtt=3.73777385........,stepsizeiseffectivelyzero;singularityorstiffsys...
出现NDSolve::ndsz At t=3.73777385........,step size is effectively zero; singularity or stiff system suspected.是什么意思 应该进行怎样的修改?
s = NDSolve[{
D[M1[t], t] == 0.21 q[t] + 3 - M1[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.5*20,
D[M2[t], t] == 0.44 q[t] - M2[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.298*20,
D[M3[t], t] == 0.35 q[t] - M3[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.302*20,
M1[0] == 4, M2[0] == 6, M3[0] == 5.5}, {M1, M2, M3}, {t, 0.01, 9.99}];
Plot[Evaluate[{M1[t], M2[t], M3[t]} /. s], {t, 0, 10}, PlotStyle -> Automatic] 展开
s = NDSolve[{
D[M1[t], t] == 0.21 q[t] + 3 - M1[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.5*20,
D[M2[t], t] == 0.44 q[t] - M2[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.298*20,
D[M3[t], t] == 0.35 q[t] - M3[t]/(0.5 M1[t] + 0.298 M2[t] + 0.302 M3[t]) 0.302*20,
M1[0] == 4, M2[0] == 6, M3[0] == 5.5}, {M1, M2, M3}, {t, 0.01, 9.99}];
Plot[Evaluate[{M1[t], M2[t], M3[t]} /. s], {t, 0, 10}, PlotStyle -> Automatic] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询