Animating the result of ordinary differential equations (ODE)
The following code shows how you can animate the result of integrating a set of ordinary differential equations. As you see, it is just a combination of the Example: Animation examples with the Example: Integrating ordinary differential equations (ODE) examples.
Examples
Kepler Problem
3-body Problem
Advanced animation
It is more complicated, but you can also write an animation with diminishing traces. Please refer to the source code of this page for more details.