Euler's Method Pseudocode (Ordinary Differential Equation)


1. Start

2. Define function f(x,y)

3. Read values of initial condition(x0 and y0), 
   number of steps (n) and calculation point (xn)
   
4. Calculate step size (h) = (xn - x0)/n

5. Set i=0

6. Loop 
      
      yn = y0 + h *  f(x0 + i*h, y0)
      
      y0 = yn
      
      i = i + 1

   While i < n

7. Display yn as result

8. Stop

Recommended Readings

  1. Ordinary Differential Equation Using Euler's Method Algorithm
  2. Ordinary Differential Equation Using Euler's Method Pseudocode
  3. Ordinary Differential Equation Using Euler's Method Using C Programming
  4. Ordinary Differential Equation Using Euler's Method Using C++ Programming
  5. Ordinary Differential Equation Using Fourth Order Runge Kutta (RK) Method Algorithm
  6. Ordinary Differential Equation Using Fourth Order Runge Kutta (RK) Method Pseudocode
  7. Ordinary Differential Equation Using Fourth Order Runge Kutta (RK) Method Using C
  8. Runge Kutta (RK) Fourth Order Using C++ with Output