Hi, all.
Thanks  to Prof Huang and Loo Kang for the codes.
I have edited the codes so that you can show a range of collision type (0: elastic to 1 perfectly inelastic)
Have used the equation provided by Ojalvo and Cohen, 1977). You can find the formula @ http://www.brachengineering.com/publications/SAE%202003-01-0491.pdf  (Pg 3)

Feel free to give comments.

/htdocs/ntnujava/ejsuser/130498/users/sgeducation/engrg1/collision_1d/collision_1d_pkg/collision_1d.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(1503.1kB):double click downloaded file to run it. (1 times by 1 users) , Download EJS source View EJS source