C Prog-II Module-3

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Solving ODE based on Euler method:

An ordinary differential equation (ODE) is an equation that involves some ordinary


derivatives (as opposed to partial derivatives) of a function. The aim is to solve an ODE,
i.e., determine what function or functions satisfy the equation.

Euler’s method using uniform step size ‘h’


Solving ODE based on Euler method:
Euler Algorithm
C program to solve ODE by Euler’s method
Output
Solving ODE by 4th order Runge Kutta method:
Algorithm
C program to solve ODE by RK method
C program to solve ODE by RK method
Out put

You might also like