The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.
I am a student of physics, and I'm developing an application that involves a vertical mass-spring system, but there are two problems in my simulation. 1 - When I change the elastic constant of the spring, the energy is not conserved. There isn't any variable for this. 2 - The spring's support swings along with the movement of the mass-spring. How can I fix these problems?