image thumbnail

Euler Method

version 1.0.1 (1.22 KB) by Manotosh Mandal
Matlab codes for Euler method of numerical differentiation

1.8K Downloads

Updated 27 Aug 2019

View License

Euler's method is a numerical method to solve first order first degree differential equation with a given initial value. It is the most basic explicit method for numerical integration of ordinary differential equations and is the simplest Runge–Kutta method. The Euler method is a first-order method, which means that the local error (error per step) is proportional to the square of the step size, and the global error (error at a given time) is proportional to the step size.

Example:
Enter initial value of x i.e. x0: 0

Enter initial value of y i.e. y0: 0.5

Enter the final value of x: 2

Enter the step length h: 0.2

x y
0.000 0.500
0.200 0.600
0.400 0.760
0.600 0.992
0.800 1.310
1.000 1.732
1.200 2.279
1.400 2.975
1.600 3.850
1.800 4.940
2.000 6.288

Cite As

Manotosh Mandal (2021). Euler Method (https://www.mathworks.com/matlabcentral/fileexchange/72522-euler-method), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!