Runge-Kutta Method

\fbox{\parbox{9cm}{
\begin{eqnarray}
k_1&=&f(x_i,y_i) \nonumber \\
k_2&=&f(x_i+...
...
y_{i+1}&=&y_i+\frac{h}{6}(k_1+2k_2+2k_3+k_4)+O(h^5) \nonumber
\end{eqnarray}}}

Table 5.2: Solution of the differential equation $dy/dx=x+y$ in the interval [0, 1] by 4th order Runge-Kutta method.
\begin{table}\begin{center}
\includegraphics[scale=0.36]{images/6-2}
\end{center}
\end{table}



(Example py-file: myrungekutta.py) As can be seen from the Table, much more sensitive results are obtained compared to the Euler method.
Figure 5.2: Solution of the differential equation $dy/dx=x+y$ in the interval [0, 1] by Euler method.
Image RK4