A ball of mass at hits a ball of mass at rest, head-on and elastically. You will make the program find both velocities afterwards for many mass ratios, and the ratio that hands over the most energy.
The idea. With : and . The share of the kinetic energy that goes to the second ball is .
Your tasks.
v1 and v2 for every ratio in r.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…