You will write three functions for nuclear reactions.
The idea. The Q value is the mass before minus the mass after, times MeV/u. For a target at rest, the threshold is . From rest, product takes the energy .
Your tasks.
q_value, return in MeV for the lists of masses before and after, in u.threshold, return the threshold energy in MeV for a negative q, a projectile mass m_a and a target mass m_x.share, return the kinetic energy in MeV of the product of mass m1, when the two products have masses m1 and m2 and the total energy is q.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…