You are on page 1of 1

Flow chart of runge kutta method

Yes


No
START
DEFINE FUNCTION f(x,y)
Get values of x
0,
y
0,
h,X
n
IS X= Xn ?
stop 20
K
1
=h*f(x,y);k
2
=h*f(x+h/2,y+k
1
/2)
K
3
=h*f(x+h/2,y+k
2
/2)
K
4
=h*f(x+h,y+k
3
)
K=(k
1
+(k
2
+k
3
)*2+(k
4
)6); x=y+h; y=y+k

PRTINT X,Y
20

You might also like