SimReal: Exercise_ - Mathematics - ODE - rk4 - DiffEq - Order 4 UiA Logo


[SimReal] [Library]
Differential Equations - Test of Runge Kutta Order 4


In this application we test differential equation
using Runge Kutta of order 4.

All the examples in this application have an analytical solution (exact solution).
The graph of the analytical solution is shown by red color.
The graph of the numerical solution using Runge Kutta of Order 4 is shown by blue color.
Change the step length h in Runge Kutta (use the radio button) to see the match between the analytical and the numerical solution.

We can select among three differential equations
(use the radiobuttons behind the equations).
The exact solution of the diff.eq. is shown in the control window.
In the simulation window the graphs
of the analytic (red) and numeric (blue) solutions are shown.

As default the step length h in the Runge Kutta routine is 0.01.
Use the radiobuttons in the control window to change the step length.


Control objects:
Radiobuttons behind the diff.eq. : Select diff.eq.
Exact solution                   : Analytic solution
x =                              : Select x-value
y =                              : Computed y-value 
Radiobuttons h                   : Select step length h in Runge Kutta
Analytic                         : Show the analytic graph 
Numeric                          : Show the numeric graph
Axis                             : Show coordinate axis
Grid                             : Show grid
Coord                            : Change unit of the coordinate axis
Origin                           : Move the origin
                                   Click in the simulation window 
Scrollbar in the sim window      : Move the point on the analytic graph 

MatRIC Logo