Index of /grad/509/src_numerics/ODE/1
Name Last modified Size Description
Parent Directory 22-Apr-2011 13:27 -
Makefile 22-Apr-2011 13:28 1k
ode0.cc 22-Apr-2011 13:28 3k
ode1.cc 22-Apr-2011 13:28 11k
old/ 22-Apr-2011 13:28 -
This simple example on solving ordinary differential equations tests
Runke-Kutta method with fixed step size and variable 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 time-step of 0.1 is
monitored and the error is printed as well as the energy of the system versus
time. Energy is constantly decreasing - a signature of the degradation.