Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.12 KB File ID: #42908
image thumbnail

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
comparison, differential equation, eulers method, mathematics, numerical methods, physics
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us