A demonstration of JAutoDiff (A pure Java automatic differentiation library).
This applet program shows a dynamics of Sun-Earth-Moon system defined as
Press the key 'v' on the applet, then you can see the dynamics in state spaces of velocity.
While only the above equations (Eq.1) are coded manually in this program,
JAutoDiff generates the derivative below (Eq.2) of (Eq.1) with respect to time t.
Actually, this program simulates the dynamics with initial condition such that
θ0 earth=θ0 moon=0 at an arbitrary time in the time interval t0 = [-50000.0, 50000.0] ⊂ R.
The state variables x, v are computed as real interval vectors using interval arithmetics library
ia_math.
The rectangles in the applet show bounds of the state variables.