You will write three small functions that turn measurements into distances. Distances are in parsecs.
The idea. A parallax in arcseconds gives . A star of luminosity gives the flux at a distance in metres. The distance modulus is .
Your tasks.
from_parallax, return the distance in parsecs for a parallax in milliarcseconds.flux, return the flux in for a luminosity in watts and a distance in parsecs.from_magnitudes, return the distance in parsecs from m and M.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…