EGXPhys

Functions

template<typename T >
EGXPhys::StellarMass (const T starMass, const T referenceMass)
 Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=\frac{m_{star}}{m_{ref}}\]

See https://en.wikipedia.org/wiki/Stellar_mass. More...

 
template<typename T >
EGXPhys::SolarMass (const T starMass)
 Calculates the solar mass \((M)\) of a star when comparing it to the mass of the sun \((m_\odot)\).

\[M=\frac{m_{star}}{m_\odot}\]

See https://en.wikipedia.org/wiki/Solar_mass. More...

 
template<typename T >
EGXPhys::StellarMassApproximation (const T starLuminosityInW)
 Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

See https://en.wikipedia.org/wiki/Stellar_mass. More...

 
template<typename T >
EGXPhys::StellarMassApproximationInkg (const T starLuminosityInW)
 Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

See https://en.wikipedia.org/wiki/Stellar_mass. More...

 
template<typename T >
EGXPhys::StellarMassApproximationInSolarMass (const T starLuminosityInSolarLuminosity)
 Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

See https://en.wikipedia.org/wiki/Stellar_mass. More...

 

Detailed Description

Function Documentation

◆ SolarMass()

template<typename T >
T EGXPhys::SolarMass ( const T  starMass)

Calculates the solar mass \((M)\) of a star when comparing it to the mass of the sun \((m_\odot)\).

\[M=\frac{m_{star}}{m_\odot}\]

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

Parameters
starMass\(m_{star}\ (kg)\) is the mass of the star.
Returns
\(M\)(dimensionless) Solar mass. Mass ratio of a star compared to the sun.
See also
PlanetaryMass() for \(M\) equation used for planets size objects.
StellarMass() for \(M\) equation using a star as a reference.
SolarMass() for \(M\) equation using the Sun as a reference.

◆ StellarMass()

template<typename T >
T EGXPhys::StellarMass ( const T  starMass,
const T  referenceMass 
)

Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=\frac{m_{star}}{m_{ref}}\]

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

Parameters
starMass\(m_{star}\ (kg)\) is the mass of the star.
referenceMass\(m_{ref}\ (kg)\) is the mass of the reference star.
Returns
\(M\ (dimensionless)\) Stellar mass. Mass ratio of a star compared to a reference star.
See also
PlanetaryMass() for \(M\) equation used for planets size objects.
StellarMass() for \(M\) equation using a star as a reference.
SolarMass() for \(M\) equation using the Sun as a reference.

◆ StellarMassApproximation()

template<typename T >
T EGXPhys::StellarMassApproximation ( const T  starLuminosityInW)

Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

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

Parameters
starLuminosityInW\(L\ (W)\) Luminosity of the star in watts.
Returns
\(m\ (kg)\) Mass of star in kilograms.
See also
StellarMassApproximationInkg() for alias.
PlanetaryMass() for \(M\) equation used for planets size objects.
StellarMass() for \(M\) equation using a star as a reference.
SolarMass() for \(M\) equation using the Sun as a reference.

◆ StellarMassApproximationInkg()

template<typename T >
T EGXPhys::StellarMassApproximationInkg ( const T  starLuminosityInW)

Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

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

Parameters
starLuminosityInW\(L\ (W)\) Luminosity of the star in watts.
Returns
\(m\ (kg)\) Mass of star in kilograms.
See also
StellarMassApproximation() for alias.
PlanetaryMass() for \(M\) equation used for planets size objects.
StellarMass() for \(M\) equation using a star as a reference.
SolarMass() for \(M\) equation using the Sun as a reference.

◆ StellarMassApproximationInSolarMass()

template<typename T >
T EGXPhys::StellarMassApproximationInSolarMass ( const T  starLuminosityInSolarLuminosity)

Calculates the stellar mass \((M)\) of a star when comparing it to the mass of a reference star \((m_{ref})\).

\[M=??\]

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

Parameters
starLuminosityInW\(L\ (W)\) Luminosity (visual) of the star in watts.
Returns
\(M\ (dimensionless)\) Solar mass of star. Mass ratio of a star compared to sun.
See also
PlanetaryMass() for \(M\) equation used for planets size objects.
StellarMass() for \(M\) equation using a star as a reference.
SolarMass() for \(M\) equation using the Sun as a reference.