Absolute magnitude of stars from apparent magnitude and distance ================================================================ Absolute magnitude can be calculated using apparent magnitude and distance to the object. **Links:** #. `Wikipedia, second formula `__. .. py:currentmodule:: symplyphysics.laws.astronomy.absolute_magnitude_from_apparent_magnitude_and_distance .. py:data:: absolute_magnitude :attr:`~symplyphysics.symbols.astronomy.absolute_magnitude` of the object. Symbol: :code:`M` Latex: :math:`M` Dimension: :code:`dimensionless` .. py:data:: apparent_magnitude :attr:`~symplyphysics.symbols.astronomy.apparent_magnitude` of the object. Symbol: :code:`m` Latex: :math:`m` Dimension: :code:`dimensionless` .. py:data:: distance :attr:`~symplyphysics.symbols.classical_mechanics.euclidean_distance` to the object. Symbol: :code:`d` Latex: :math:`d` Dimension: :code:`length` .. py:data:: distance_constant Constant equal to :math:`2.063 \cdot 10^6` astronomical units. Symbol: :code:`d_0` Latex: :math:`d_0` Dimension: :code:`length` .. py:data:: law :code:`M = m - 5 * log(d / d_0, 10)` Latex: .. math:: M = m - 5 \log_{10} \left( \frac{d}{d_0} \right)