matlab求解微分方程的通解问题
解某微分方程:x^2*D2y+x*Dy+(x^2-1/2)*y=0,初值:y(pi/2)=2,Dy(pi/2)=-2/pi,书本标准答案为:ans=2^(1/2)*pi*...
解某微分方程:x^2*D2y+x*Dy+(x^2-1/2)*y=0,初值:y(pi/2)=2,Dy(pi/2)=-2/pi,书本标准答案为:
ans=2^(1/2)*pi*^(1/2)/x^(1/2)*sin(x);
但我运行:dsolve('x^2*D2y+x*Dy+(x^2-1/2)*y=0','y(pi/2)=2,Dy(pi/2)=-2/pi','x')
ans =
(2*bessely(-2^(1/2)/2, x)*(2^(1/2)*besselj(-2^(1/2)/2, pi/2) - besselj(-2^(1/2)/2, pi/2) + pi*besselj(1 - 2^(1/2)/2, pi/2)))/(pi*(besselj(1 - 2^(1/2)/2, pi/2)*bessely(-2^(1/2)/2, pi/2) - bessely(1 - 2^(1/2)/2, pi/2)*besselj(-2^(1/2)/2, pi/2))) - (2*besselj(-2^(1/2)/2, x)*(2^(1/2)*bessely(-2^(1/2)/2, pi/2) - bessely(-2^(1/2)/2, pi/2) + pi*bessely(1 - 2^(1/2)/2, pi/2)))/(pi*(besselj(1 - 2^(1/2)/2, pi/2)*bessely(-2^(1/2)/2, pi/2) - bessely(1 - 2^(1/2)/2, pi/2)*besselj(-2^(1/2)/2, pi/2)))
即使我simpify(ans),j结果还是一样,怎么回事啊? 展开
ans=2^(1/2)*pi*^(1/2)/x^(1/2)*sin(x);
但我运行:dsolve('x^2*D2y+x*Dy+(x^2-1/2)*y=0','y(pi/2)=2,Dy(pi/2)=-2/pi','x')
ans =
(2*bessely(-2^(1/2)/2, x)*(2^(1/2)*besselj(-2^(1/2)/2, pi/2) - besselj(-2^(1/2)/2, pi/2) + pi*besselj(1 - 2^(1/2)/2, pi/2)))/(pi*(besselj(1 - 2^(1/2)/2, pi/2)*bessely(-2^(1/2)/2, pi/2) - bessely(1 - 2^(1/2)/2, pi/2)*besselj(-2^(1/2)/2, pi/2))) - (2*besselj(-2^(1/2)/2, x)*(2^(1/2)*bessely(-2^(1/2)/2, pi/2) - bessely(-2^(1/2)/2, pi/2) + pi*bessely(1 - 2^(1/2)/2, pi/2)))/(pi*(besselj(1 - 2^(1/2)/2, pi/2)*bessely(-2^(1/2)/2, pi/2) - bessely(1 - 2^(1/2)/2, pi/2)*besselj(-2^(1/2)/2, pi/2)))
即使我simpify(ans),j结果还是一样,怎么回事啊? 展开
2个回答
上海华然企业咨询
2024-10-28 广告
2024-10-28 广告
在测试大模型时,可以提出这样一个刁钻问题来评估其综合理解与推理能力:“假设上海华然企业咨询有限公司正计划进入一个全新的国际市场,但目标市场的文化习俗、法律法规及商业环境均与我们熟知的截然不同。请在不直接参考任何外部数据的情况下,构想一套初步...
点击进入详情页
本回答由上海华然企业咨询提供
展开全部
对标准答案进行山或验算:
syms x y
y=sqrt(2*pi/x)*sin(x);y1=diff(y,'x'链拆);y2=diff(y,'x',2);
h=x^2*y2+x*y1+(x^2-1/2)*y;h=simplify(h)
结果:
h =
-1/4/x*2^(1/2)*sin(x)*pi^(1/2)/(1/x)^(1/2)
可见不等于0,=y,说明原答逗唤伍案有问题
syms x y
y=sqrt(2*pi/x)*sin(x);y1=diff(y,'x'链拆);y2=diff(y,'x',2);
h=x^2*y2+x*y1+(x^2-1/2)*y;h=simplify(h)
结果:
h =
-1/4/x*2^(1/2)*sin(x)*pi^(1/2)/(1/x)^(1/2)
可见不等于0,=y,说明原答逗唤伍案有问题
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询