EGXPhys
Absolute Magnitude

Functions

template<typename T >
EGXPhys::AbsoluteMagnitude (const T apparentMagnitude, const T distanceInparsecs)
 Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away.

\[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\]

. More...

 
template<typename T >
EGXPhys::AbsoluteMagnitudeFromParsecs (const T apparentMagnitude, const T distanceInparsecs)
 Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away.

\[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\]

. More...

 
template<typename T >
EGXPhys::AbsoluteMagnitudeFromParallax (const T apparentMagnitude, const T parallaxInArcSec)
 Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the parallax, \(p\), in arc seconds.

\[M= m - 5 \left ( log_{10} \left ( \dfrac{1}{p} \right ) - 1 \right )\]

. More...

 
template<typename T >
EGXPhys::AbsoluteMagnitudeFromAU (const T apparentMagnitude, const T distanceInAstronomicalUnits)
 Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{AU}\), in astronomical units it is away.

\[M= m - 5 \left ( log_{10} \left ( \dfrac{\pi}{648000}d_{AU} \right ) - 1 \right )\]

. More...

 

Detailed Description

Function Documentation

◆ AbsoluteMagnitude()

template<typename T >
T EGXPhys::AbsoluteMagnitude ( const T  apparentMagnitude,
const T  distanceInparsecs 
)

Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away.

\[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\]

.

See https://en.wikipedia.org/wiki/Absolute_magnitude

Parameters
apparentMagnitude\(M\ (dimensionless)\) Apparent magnitude of a star (almost allways as seen from earth).
distanceInparsecs\(d_{pc}\ (pc)\) Distance in parsecs between a star and the measurement of apparent magnitude.
Returns
\(M\ (dimensionless)\) Absolute magnitude of a star.
See also
AbsoluteMagnitudeFromParsecs() for alias.
AbsoluteMagnitudeFromParallax() for calculation using parallax.
AbsoluteMagnitudeFromAU() for calculation using astronomical units.

◆ AbsoluteMagnitudeFromAU()

template<typename T >
T EGXPhys::AbsoluteMagnitudeFromAU ( const T  apparentMagnitude,
const T  distanceInAstronomicalUnits 
)

Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{AU}\), in astronomical units it is away.

\[M= m - 5 \left ( log_{10} \left ( \dfrac{\pi}{648000}d_{AU} \right ) - 1 \right )\]

.

See https://en.wikipedia.org/wiki/Absolute_magnitude

Parameters
apparentMagnitude\(M\ (dimensionless)\) Apparent magnitude of a star (almost allways as seen from earth).
distanceInAstronomicalUnits\(d_{AU}\ (AU)\) Distance in astronomical units between a star and the measurement of apparent magnitude.
Returns
\(M\ (dimensionless)\) Absolute magnitude of a star.
See also
AbsoluteMagnitudeFromParsecs() for calculation using parsecs.
AbsoluteMagnitudeFromParallax() for calculation using parallax.

◆ AbsoluteMagnitudeFromParallax()

template<typename T >
T EGXPhys::AbsoluteMagnitudeFromParallax ( const T  apparentMagnitude,
const T  parallaxInArcSec 
)

Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the parallax, \(p\), in arc seconds.

\[M= m - 5 \left ( log_{10} \left ( \dfrac{1}{p} \right ) - 1 \right )\]

.

See https://en.wikipedia.org/wiki/Absolute_magnitude

Parameters
apparentMagnitude\(M\ (dimensionless)\) Apparent magnitude of a star (almost allways as seen from earth).
parallaxInArcSec\(p\ (arc seconds)\) Parallax of the star in arc seconds.
Returns
\(M\ (dimensionless)\) Absolute magnitude of a star.
See also
AbsoluteMagnitudeFromParsecs() for calculation using parsecs.
AbsoluteMagnitudeFromAU() for calculation using astronomical units.

◆ AbsoluteMagnitudeFromParsecs()

template<typename T >
T EGXPhys::AbsoluteMagnitudeFromParsecs ( const T  apparentMagnitude,
const T  distanceInparsecs 
)

Calculates the absolute magnitude, \(M\), of a star from its apparent magnitude, \(m\), and the distance, \(d_{pc}\), in parsecs it is away.

\[M= m - 5 \left ( log_{10}(d_{pc}) - 1 \right )\]

.

See https://en.wikipedia.org/wiki/Absolute_magnitude

Parameters
apparentMagnitude\(M\ (dimensionless)\) Apparent magnitude of a star (almost allways as seen from earth).
distanceInparsecs\(d_{pc}\ (pc)\) Distance in parsecs between a star and the measurement of apparent magnitude.
Returns
\(M\ (dimensionless)\) Absolute magnitude of a star.
See also
AbsoluteMagnitude() for alias.
AbsoluteMagnitudeFromParallax() for calculation using parallax.
AbsoluteMagnitudeFromAU() for calculation using astronomical units.