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

Name: Mustafa SHEKHLEE

Date: 2/1/2019 Wednesday


Homework:

, f (1) = 1, f (1.5) =? h = 0.1

1) 2nd Order Runge Kutta Method.

xi yi h K1 xi+1 xi+3/4.h yi+3/4.K1.h K2 yi+1


1 1 0.1 0.5 1.1 1.075 1.0375 0.51739635 1.051159756
1.1 1.05115976 0.1 0.523202 1.2 1.175 1.090399883 0.53818634 1.104478902
1.2 1.1044789 0.1 0.543186 1.3 1.275 1.145217878 0.55611628 1.159659532
1.3 1.15965953 0.1 0.56043 1.4 1.375 1.201691801 0.57161556 1.216448245
1.4 1.21644824 0.1 0.575347 1.5 1.475 1.25959928 0.585053 1.274630016

2) 3rd Order Runge Kutta Method.

xi yi h K1 xi+1 Xi+1/2*h yi+1/2.K1.h K2 yi-K1.h+2.K2.h K3 yi+1


1 1 0.1 0.5 1.1 1.05 1.0375 0.51813317 1.053626635 0.52442955 1.05161604
1.1 1.05161604 0.1 0.523429 1.2 1.15 1.090873197 0.5401525 1.107303657 0.54457557 1.10542628
1.2 1.10542628 0.1 0.543652 1.3 1.25 1.146200197 0.55912205 1.162885459 0.56198926 1.16112844
1.3 1.16112844 0.1 0.56114 1.4 1.35 1.203213949 0.57549649 1.220113722 0.57708081 1.21846522
1.4 1.21846522 0.1 0.576301 1.5 1.45 1.261687804 0.58966876 1.27876886 0.59020101 1.27721817
3) 4th Order Runge Kutta Method.

xi yi h xi+1 K1 xi+1/2*h yi+1/2*K1*h K2 yi+1/2*K2*h K3 yi+K3*h K4 yi+1


1 1 0.1 1.1 0.5 1.05 1.0375 0.518133 1.025906659 0.512343 1.051234 0.523239 1.051403
1.1 1.051403 0.1 1.2 0.523323 1.15 1.090652414 0.540043 1.078405358 0.533979 1.104801 0.543345 1.104982
1.2 1.104982 0.1 1.3 0.543434 1.25 1.145739255 0.558897 1.132926592 0.552647 1.160246 0.560714 1.160436
1.3 1.160436 0.1 1.4 0.560805 1.35 1.202496069 0.575153 1.189193324 0.56879 1.217315 0.575757 1.21751
1.4 1.21751 0.1 1.5 0.575849 1.45 1.260698518 0.589206 1.246970145 0.58279 1.275789 0.588826 1.275988

…………………………………………………………………………………………………………………………………..
2nd Order Runge Kutta Formula ( ) , K1 =f (xi, yi) , .

3rd Order Runge Kutta Formula , K1 =f (xi, yi) , ,

4th Order Runge Kutta Formula , K1 =f (xi, yi), ,

, .

You might also like