You will write three functions about stars on the main sequence. Masses and luminosities are in solar units, times in years.
The idea. On the main sequence, and the lifetime is years. A cluster of age has a turn-off mass for which the lifetime equals .
Your tasks.
luminosity, return for the mass M.lifetime, return the time on the main sequence.turnoff_mass, return the mass whose lifetime equals the age of a cluster.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…