A block on a smooth floor is tied to a spring with , pulled out and let go. You will make the program follow its energy over two swings and show that the total stays the same.
The idea. The block moves as , with , so its velocity is . Its energy is plus .
Your tasks.
U and K at every time in t.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…