Numerical methods vs analytical methods for Differential equations
by Praveen Ranganath
01 Aug 2013
This code compares the analytical solution with the numerical solutions of a simple first order ODE
|
Watch this File
|
| File Information |
| Description |
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. |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.10 (R2010a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us