Spring-Mass System Simulation

This system models a simple spring-mass-damper system with a periodically varying forcing function.

Associated with the demo is an animation function that will automatically open a figure window and display to it.

Try experimenting with different initial conditions and different settings for the forcing function.