You will write three functions for a particle of rest energy rest and kinetic energy k, both in MeV.
The idea. , the total energy is , and . The speed is .
Your tasks.
gamma_from_k, return the Lorentz factor.momentum, return in MeV.speed, return .Run your code once to unlock the worked solution.
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…