Pendulum with n=1,2, or 3 moving masses:

Physics:
All masses and bond lengths are set to 1; grav acceleration is 9.81.

By varying the initial angle(s) regular and chaotic regimes may be visited.

Computation:
Andersen's RATTLE algorithm is used, with dt=0.001.