Spring Physics

See how a spring naturally produces a sine wave (press play):

images/spring.js

It is an example of "Simple Harmonic Motion".

(Note: you can drag the end of the spring.)