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]怎么解不出来?

问题描述:

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]
再执行你的代码.