Mathematica 微分方程初始条件问题
Mathematica解微分方程时,加了初始条件出错!为什么?
如:
In[1]=DSolve[{y'[x]+y[x]==aSin[x],y[0]==0},y[x],x]
DSolve::deqn:Equation or list of equations expected instead of True in the first argument {y[x]+y'[x]==aSin[x],True}.>>
Out[1]=DSolve[{y[x]+y'[x]==aSin[x],True},y[x],x]
人气:210 ℃ 时间:2020-05-08 20:42:12
解答
In[286]:= DSolve[{y'[x] + y[x] == a*Sin[x],y[0] == 0},y[x],x]Out[286]= {{y[x] -> -(1/2) a E^-x (-1 + E^x Cos[x] - E^x Sin[x])}}未发现问题;In[287]:= y[0] = 0;DSolve[{y'[x] + y[x] == a*Sin[x],y[0] == 0}...
推荐
猜你喜欢