Numerical methods vs analytical methods for Differential equations

This code compares the analytical solution with the numerical solutions of a simple first order ODE

您现在正在关注此提交

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 (2026). Numerical methods vs analytical methods for Differential equations (https://ww2.mathworks.cn/matlabcentral/fileexchange/42908-numerical-methods-vs-analytical-methods-for-differential-equations), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Numerical Integration and Differential Equations 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0