[Go to the Notes on Diffy Qs home page]

Notes on Diffy Qs - SAGE demonstrations for section 3.6

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.

Two carts on springs

Let the setup be as in the picture:

Carts setup

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.

Valid HTML 5 Valid CSS!