I hope the following version is what you want.

You can select either "Fix k, change dx" mode or "Fix dx, change k" mode.

For Fix k, change dx mode:
You can drag dx slider when the simulation is paused.

For Fix dx, change k mode:
You can change dx only by dragging block.
You can click "init" to change the displacement of spring to previous value.
The block will move to different heights up the ramp with different spring constant.

I also add numerical value for kinetic energy, potential energy, etc.


/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/springincline3_pkg/springincline3.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(1050.7kB):double click downloaded file to run it. (1 times by 1 users) , Download EJS source View EJS source