[Go to the Notes on Diffy Qs home page]
Press the Activate button below to launch the SAGE demonstration. After the sage cell is evaluated you should be able to interact with it to change numbers with sliders. You may have to wait a little before the graph appears. Be patient.
Let the setup be as in the picture:
You can change the spring constants and masses, and give initial conditions. The position of each cart is relative to its rest position.
The code is mainly due to Ryan Burkhart, it was then slightly modified by Jiří Lebl.