早教吧作业答案频道 -->其他-->
用Mathematica8解微分方程解不了,您知道是怎么回事吗?今天用Mathematica8解方程解不了了,一直报错:In[72]:=DSolve[y'[x]==E^x*y[x],y[x],x]\:6B63\:5728\:8BA1\:7B97In[72]:=DSolve::dvnoarg:Thefunctionyappearswithno
题目详情
用Mathematica8解微分方程解不了,您知道是怎么回事吗?
今天用Mathematica8解方程解不了了,一直报错:
In[72]:= DSolve[y'[x] == E^x*y[x], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[72]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[72]= DSolve[E^x y == E^x y[x], y[x], x]
In[60]:= DSolve[y'[x] + 2 x*y[x] == x*Exp[-x^2/2], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[60]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[60]= DSolve[E^x y + 2 x y[x] == E^(-(x^2/2)) x, y[x], x]
In[61]:= DSolve[y'[x] + y[x] == a Sin[x], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[61]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[61]= DSolve[E^x y + y[x] == a Sin[x], y[x], x]
In[62]:= DSolve[{y'[x] + y[x] == a Sin[x], y[0] == 0}, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[62]:= DSolve::dvnoarg: The function y appears with no arguments. >>
In[63]:= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[63]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[63]= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y[x], x]
In[64]:= DSolve[y'[x] == x, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[64]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[64]= DSolve[E^x y == x, y[x], x]
In[69]:= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y, x]
\:6B63\:5728\:8BA1\:7B97In[69]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[69]= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y, x]
仔细检查过输入了,没有问题,但是解这个又可以:
In[68]:= DSolve[{x'[s] == Cos[t[s]], y'[s] == Sin[t[s]], t'[s] == s,
x[0] == 0, y[0] == 0, t[0] == 0}, {x, y, t}, s]
Out[68]= {{t -> Function[{s}, s^2/2],
x -> Function[{s}, Sqrt[\[Pi]] FresnelC[s/Sqrt[\[Pi]]]],
y -> Function[{s}, Sqrt[\[Pi]] FresnelS[s/Sqrt[\[Pi]]]]}}
今天用Mathematica8解方程解不了了,一直报错:
In[72]:= DSolve[y'[x] == E^x*y[x], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[72]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[72]= DSolve[E^x y == E^x y[x], y[x], x]
In[60]:= DSolve[y'[x] + 2 x*y[x] == x*Exp[-x^2/2], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[60]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[60]= DSolve[E^x y + 2 x y[x] == E^(-(x^2/2)) x, y[x], x]
In[61]:= DSolve[y'[x] + y[x] == a Sin[x], y[x], x]
\:6B63\:5728\:8BA1\:7B97In[61]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[61]= DSolve[E^x y + y[x] == a Sin[x], y[x], x]
In[62]:= DSolve[{y'[x] + y[x] == a Sin[x], y[0] == 0}, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[62]:= DSolve::dvnoarg: The function y appears with no arguments. >>
In[63]:= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[63]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[63]= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y[x], x]
In[64]:= DSolve[y'[x] == x, y[x], x]
\:6B63\:5728\:8BA1\:7B97In[64]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[64]= DSolve[E^x y == x, y[x], x]
In[69]:= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y, x]
\:6B63\:5728\:8BA1\:7B97In[69]:= DSolve::dvnoarg: The function y appears with no arguments. >>
Out[69]= DSolve[{E^x y + y[x] == a Sin[x], y[0] == 0}, y, x]
仔细检查过输入了,没有问题,但是解这个又可以:
In[68]:= DSolve[{x'[s] == Cos[t[s]], y'[s] == Sin[t[s]], t'[s] == s,
x[0] == 0, y[0] == 0, t[0] == 0}, {x, y, t}, s]
Out[68]= {{t -> Function[{s}, s^2/2],
x -> Function[{s}, Sqrt[\[Pi]] FresnelC[s/Sqrt[\[Pi]]]],
y -> Function[{s}, Sqrt[\[Pi]] FresnelS[s/Sqrt[\[Pi]]]]}}
▼优质解答
答案和解析
你的软件安装有问题,我把你的输入验证了都可以有正确结果:
In[1]:= DSolve[y'[x] + 2 x*y[x] == x*Exp[-x^2/2],y[x],x]
Out[1]= {{y[x] -> E^(-(x^2/2)) + E^-x^2 C[1]}}
In[2]:= DSolve[y'[x] + y[x] == a Sin[x],y[x],x]
Out[2]= {{y[x] -> E^-x C[1] + 1/2 a (-Cos[x] + Sin[x])}}
In[3]:= DSolve[{y'[x] + y[x] == a Sin[x],y[0] == 0},y[x],x]
Out[3]= {{y[x] -> -(1/2) a E^-x (-1 + E^x Cos[x] - E^x Sin[x])}}
In[1]:= DSolve[y'[x] + 2 x*y[x] == x*Exp[-x^2/2],y[x],x]
Out[1]= {{y[x] -> E^(-(x^2/2)) + E^-x^2 C[1]}}
In[2]:= DSolve[y'[x] + y[x] == a Sin[x],y[x],x]
Out[2]= {{y[x] -> E^-x C[1] + 1/2 a (-Cos[x] + Sin[x])}}
In[3]:= DSolve[{y'[x] + y[x] == a Sin[x],y[0] == 0},y[x],x]
Out[3]= {{y[x] -> -(1/2) a E^-x (-1 + E^x Cos[x] - E^x Sin[x])}}
看了 用Mathematica8解...的网友还看了以下:
已知字母组合成英语单词1、e e t t i n h r 2、e e r a t w h 3、o 2020-05-14 …
请用Mathematica7求出Y和X的关系a*c=(Y*d+X*h)*(g+Sqrt(i+b/( 2020-06-05 …
纵横字谜之英语暑假作业题(s)(o)(r)(r)(n)(g)(r)(e))(a)(k)(k)(e) 2020-06-06 …
已知,E(X)=1,E(Y)=2,D(X)=4,D(Y)=9,ρxy=-0.8,已知,E(X)=1 2020-06-17 …
协方差cov(X+20,Y+10)=cov(X,知道了COV(X+a,Y+b)=E[(X+a)(Y 2020-06-17 …
1.(x^2-1)(x+1)^5=ax^7+bx^6+cx^5+dx^4+ex^3+fx^2+gx 2020-07-30 …
matlab解y关于x的二阶微分方程E*y+(h²/8π²m)*(d2y/dx2)=0为什么解出来 2020-08-02 …
三元一次方程组a*x+b*y+c*z+d=0,e*x+f*y+g*z+h=0,i*x+j*y+k* 2020-08-03 …
求三元一次方程一般解已知常数a,b,c,d,e,f,g,h,i,j,k,l,未知数x,y,z,有d 2020-08-03 …
概率论中的h'(y)是什么玩意?fY(y)=Fx(h(y))丨h'(y)丨中的已知h(y)=(y-b 2020-12-06 …