Professional Documents
Culture Documents
#include<stdio.h>
#include<conio.h>
#include<math.h>
return(y);
void main()
clrscr();
float x0,y0,h,xg,yg,k1,k2,k3,k4,k,i,n;
n=(xg-x0)/h;
for(i=1;i<=n;i++)
k1=h*f(x0,y0);
Er.puneet kumar tyagi
k2=h*f(x0+(h/2),y0+(k1/2));
k3=h*f(x0+(h/2),y0+(k2/2));
k4=h*f(x0+h,y0+k3);
k=(k1+2*k2+2*k3+k4)/6;
yg=y0+k;
y0=y0;
getch();
}
Er.puneet kumar tyagi
OUTPUT: