# Euler’s Method C Program

By | July 11, 2017

Let us understand what is Euler’s method in numerical analysis and learn how to implement algorithm of Euler’s method in C programming with its explanation, output, advantages, disadvantages and much more.

#### What is Euler’s method?

The Euler’s method is a first-order numerical method and is used to solve differential equations. It is also popularly known as Forward Euler’s method.

This is a very basic method for numerical integration of ordinary differential equations.

The Euler’s numerical analysis method is very simple to implement but it does not provide accurate results under some circumstances.

Therefore, mathematicians developed a modified version of Euler’s method which is known as Euler’s modified method.

#### Euler’s Formula

The solution for Euler’s numerical method is generated by iterating on the two formulas:

xn + 1 = xn + h

yn + 1 = yn + h*f(xn, yn)

where h = length of subdivisions

• It can be used for simple non-linear initial value problems.
• The Euler’s numerical method is direct in nature and simple to implement.

• The Euler’s method is not so accurate and unstable.
• The approximation error is also not stable.
• If the value for h is large, then it does not give proper results.

Note: This code for Euler’s method in C programming is compiled with GNU GCC compiler on CodeLite IDE. However, these codes are compatible with all other operating systems.

#### Output

If you have any doubts about the implementation of Euler’s method in C programming, let us know about it in the comment section. Find more about it on Wikipedia.

NUMERICAL METHODS C PROGRAMS
Newton-Raphson Method C Program
Weddle’s Rule Algorithm C Program
Secant Method C Program
Bisection Method C Program
Gauss Seidel Method C Program
Simpson’s 3/8th Rule C Program
Picard’s Method C Program
Regula Falsi Method C Program
Bisection Method Algorithm and Flowchart
Simpson’s 1/3rd Rule C Program
Trapezoidal Rule C Program

## One thought on “Euler’s Method C Program”

1. Nurul Syafiqah

Hi. I am interested to study about c program for multi steps method ( adam bashforth method ). thank you for your attention and consideration .