Absolute magnitude of stars from apparent magnitude and distance

Absolute magnitude can be calculated using apparent magnitude and distance to the object.

Links:

  1. Wikipedia, second formula.

absolute_magnitude

absolute_magnitude of the object.

Symbol:

M

Latex:

\(M\)

Dimension:

dimensionless

apparent_magnitude

apparent_magnitude of the object.

Symbol:

m

Latex:

\(m\)

Dimension:

dimensionless

distance

euclidean_distance to the object.

Symbol:

d

Latex:

\(d\)

Dimension:

length

distance_constant

Constant equal to \(2.063 \cdot 10^6\) astronomical units.

Symbol:

d_0

Latex:

\(d_0\)

Dimension:

length

law

M = m - 5 * log(d / d_0, 10)

Latex:
\[M = m - 5 \log_{10} \left( \frac{d}{d_0} \right)\]