The following is an EJS version of the above applet (with more options)

You can drag the spring, particle and the rod with mouse click/drag.
You can change spring constant k, mass m , spring length L, and damping constant b.
Enjoy it!

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/pendulumspringHline_pkg/pendulumspringHline.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1276.5kB):double click downloaded file to run it. (3 times by 3 users) , Download EJS source (1 times by 1 users) View EJS source