mathematica 解微分方程组

In[39]:= DSolve[{x'[t] == r*x[t], x[0] == x0}, x[t], t]
During evaluation of In[39]:= DSolve::deqn: Equation or list of equations expected instead of True in the first argument {(x^\[Prime])[t]==r x[t],True}. >>
Out[39]= DSolve[{Derivative[1][x][t] == r x[t], True}, x[t], t]

怎么解不出来?

你之前错将 x[0] == x0 写成过x[0] = x0 吧。这导致了变量赋值。先执行一下

Clear[x]

再执行你的代码。
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜