微分方程求解精确解.pdfVIP

  • 2
  • 0
  • 约小于1千字
  • 约 2页
  • 2024-06-18 发布于上海
  • 举报

微分方程求解精确解

clc,clear,closeall

=dsolve((D)-2*x/(3*^2)=0,(0)=1,x)

function=funfcn(x,)

(1)=2*x/(3*^2);

end

clc,clear,closeall

=dsolve((D)-2*x/(3*^2)=0,(0)=1,x)

options=odeset(RelTol,1e-4,AbsTol,1e-4);

[t,]=ode23(@funfcn,[01.2],1,options),

f=(t.^2+1).^(1/3)

plot(t,(:,1),rp--,t,f,bo--);

grid

xlabel(自变量X),

label(因变量Y)

legend(数值解,精确解=f(x))

juew=f(:,1)-(:,1),

xiangw=juew./f(:,1),

[t,,f,juew,xiangw]

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档