Stellar Magnitude & Distance
Stellar Magnitude & Distance
Astronomers measure stellar brightness on a logarithmic magnitude scale dating back to ancient Greece. The key rule: a difference of 5 magnitudes = a factor of 100 in flux.
Flux Ratio
For two stars with apparent magnitudes and :
Note: smaller magnitude = brighter star (Sirius: , faintest naked-eye stars: ).
Distance Modulus
The absolute magnitude is the apparent magnitude a star would have at exactly 10 parsecs. The distance modulus connects apparent and absolute magnitude to distance in parsecs:
At pc: . At pc: . At pc: .
Parallax
Nearby stars show an annual parallax — a tiny apparent shift as Earth orbits the Sun. The distance in parsecs is simply:
The Hipparcos and Gaia missions measured parallaxes for over a billion stars.
| Star | (pc) | ||
|---|---|---|---|
| Sun | −26.74 | +4.83 | 0.0000049 |
| Sirius | −1.46 | +1.43 | 2.64 |
| Polaris | +1.98 | −3.64 | 133 |
Your Task
Implement three functions. All constants must be defined inside each function.
flux_ratio(m1, m2)— returnsdistance_modulus(d_pc)— returnsdistance_from_modulus(mu)— returns in parsecs