Numerical methods vs analytical methods for Differential equations

This code compares the analytical solution with the numerical solutions of a simple first order ODE
ダウンロード: 1.4K
更新 2013/8/1

ライセンスの表示

Euler's method, Modified Euler's method and RK4 methods have been used to obtain approximate solutions of the differential equation dy/dx = x *sqrt(y), with y(2)=4 as the Initial condition. The solutions obtained have been compared against the analytical solution in the first plot. In the second, the errors have been compared. Finally, the time for each algorithm is displayed on the command window.

引用

Praveen Ranganath (2024). Numerical methods vs analytical methods for Differential equations (https://www.mathworks.com/matlabcentral/fileexchange/42908-numerical-methods-vs-analytical-methods-for-differential-equations), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersNumerical Integration and Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0