Given the example Differential equation:
:
With initial condition:
: and
This equation has an exact solution:
:
;Task
Demonstrate the commonly used explicit [[wp:Runge–Kutta_methods#Common_fourth-order_Runge.E2.80.93Kutta_method|fourth-order Runge–Kutta method]] to solve the above differential equation.
* Solve the given differential equation over the range with a step value of (101 total points, the first being given)
* Print the calculated values of at whole numbered 's () along with error as compared to the exact solution.
;Method summary
Starting with a given and calculate:
:
:
:
:
then:
:
: