How to write ordinary differantial equations ?bvb

17 ビュー (過去 30 日間)
Busra Yuksel
Busra Yuksel 2022 年 6 月 15 日
回答済み: Busra Yuksel 2022 年 6 月 15 日
F=@(x); dy=@(x,y); x0=; xn=; y= ;h= ;fprintf(‘x\t\t y (Euler)\t y(analytical)\n’); fprintf(‘%f\t %f\t %f\n’,x0,y,f(x0); for x=x0:h:xn-h.. y=y+dy(x,y)*h; x=x+h; fprintf(‘%f\t %f\t %f\n’,x,y,f(x)); end

採用された回答

Busra Yuksel
Busra Yuksel 2022 年 6 月 15 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by