You will write three small functions about radioactive decay.
The idea. The decay constant is and the mean life is . The fraction of the nuclei that are left after a time is . Use the same unit of time for and .
Your tasks.
decay_constant, return for a half-life half_life.mean_life, return the mean life.fraction_left, return the fraction of the nuclei left after a time 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…