Question: Runge-Kutta in maple

dy/dx=sqrt(1+(a*x)+(2*y))

for the case a=1, y=1 and x=0 construct a program for the runge-kutta method of order 2 with formulae as follows where f(x,y)=dy/dx.

k_1=h*f(x_n,y_n)

k_2=h*f(x_n+h,y_n+k_1)

y_(n+1)=y_n+1/2(k_1+k_2).

 

After creating a program obtain value of y correct to 4 decimal places when x=1 for h=0.1 and h =0.05.

Please Wait...