MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] 符号微分方程求解 (https://www.labfans.com/bbs/showthread.php?t=12438)

artion 2010-12-29 20:19

符号微分方程求解
 
明天考试,小弟初学,急求解决一个问题

设 D2y-3*Dy+2*y=x,y(0)=0,Dy(0)=0,求y(0.5)的值

万分感谢:)

shengsheng 2010-12-31 00:31

回复: 符号微分方程求解
 
clear
syms x;
Dsolve('D2y-3*Dy+2*y=x','y(0)=0','Dy(0)=0','x')
f =ans;
subs(f,x,0.5)


ans =

1/2*x+3/4+1/4*exp(2*x)-exp(x)



ans =

0.0308


所有时间均为北京时间。现在的时间是 12:47

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.