|
EGXPhys
|
Functions | |
| 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}}\] | |
| 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}\] | |
| 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=??\] | |
| 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=??\] | |
| 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=??\] | |
| 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.
| starMass | \(m_{star}\ (kg)\) is the mass of the star. |
| 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.
| starMass | \(m_{star}\ (kg)\) is the mass of the star. |
| referenceMass | \(m_{ref}\ (kg)\) is the mass of the reference star. |
| 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.
| starLuminosityInW | \(L\ (W)\) Luminosity of the star in watts. |
| 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.
| starLuminosityInW | \(L\ (W)\) Luminosity of the star in watts. |
| 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.
| starLuminosityInW | \(L\ (W)\) Luminosity (visual) of the star in watts. |