Index of /grad/509/src_numerics/ODE/1.5
Name Last modified Size Description
Parent Directory 07-Mar-2007 08:49 -
Makefile 07-Mar-2007 08:49 1k
ode.cc 07-Mar-2007 08:49 1k
rungek.h 07-Mar-2007 08:49 8k
This simple example on solving ordinary differential equations tests
Runke-Kutta method with adaptive step size by solving "simple pendulum"
problem.
It starts pendulum with energy equal E=1 and initial nonzero velocity and
zero position. Time evolution of 200 time-units with is
monitored and the error is printed as well as the energy of the system versus
time. Energy is here slightly increasing - a signature of the degradation.