mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Solar units-type.
The units are:
#include <astro/units.hpp>
Public Types | |
typedef _realT | realT |
The real floating point type in which to specify constants. More... | |
Static Public Attributes | |
static constexpr realT | length = static_cast<realT>(1)/constants::au<si<realT>>() |
Conversion from SI (m) to solar (au) More... | |
static constexpr realT | time = static_cast<realT>(1.0) / constants::year<si<realT>>() |
Conversion from SI (s) to solar (yr) More... | |
static constexpr realT | mass = constants::G<si<realT>>()/constants::GMSun<si<realT>>() |
Conversion from SI (kg) to solar (M_sun) More... | |
static constexpr realT | energy = static_cast<realT>(1.0)/( constants::lumSun<si<realT>>()*static_cast<realT>(365.25)*static_cast<realT>(86400.0)) |
Conversion from SI (J) to solar (Solar-luminosities X year) More... | |
static constexpr realT | temperature = static_cast<realT>(1.0) / constants::TeffSun<si<realT>>() |
Conversion from SI (K) to solar (5772 K) More... | |
typedef _realT mx::astro::units::solar< _realT >::realT |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |