You will write three functions about the light of stars. Temperatures are in kelvin, radii and luminosities as multiples of the Sun's.
The idea. Wien's law is . In solar units the Stefan-Boltzmann law is .
Your tasks.
temperature, return the surface temperature for a peak wavelength in nanometres.luminosity, return the luminosity in solar units for a radius in solar units and a temperature.radius, return the radius in solar units for a luminosity in solar units and a temperature.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…