![]() |
CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
|
Constants of general use. More...
Go to the source code of this file.
Namespaces | |
cbl | |
The global namespace of the CosmoBolognaLib | |
cbl::par | |
The namespace of the global parameters and constants | |
Variables | |
static const double | cbl::par::yotta = 1.e24 |
conversion factor | |
static const double | cbl::par::zetta = 1.e21 |
conversion factor | |
static const double | cbl::par::exa = 1.e18 |
conversion factor | |
static const double | cbl::par::peta = 1.e15 |
conversion factor | |
static const double | cbl::par::tera = 1.e12 |
conversion factor | |
static const double | cbl::par::giga = 1.e9 |
conversion factor | |
static const double | cbl::par::mega = 1.e6 |
conversion factor | |
static const double | cbl::par::kilo = 1.e3 |
conversion factor | |
static const double | cbl::par::ecto = 1.e2 |
conversion factor | |
static const double | cbl::par::deca = 10. |
conversion factor | |
static const double | cbl::par::deci = 1.e-1 |
conversion factor | |
static const double | cbl::par::centi = 1.e-2 |
conversion factor | |
static const double | cbl::par::milli = 1.e-3 |
conversion factor | |
static const double | cbl::par::micro = 1.e-6 |
conversion factor | |
static const double | cbl::par::nano = 1.e-9 |
conversion factor | |
static const double | cbl::par::pico = 1.e-12 |
conversion factor | |
static const double | cbl::par::femto = 1.e-15 |
conversion factor | |
static const double | cbl::par::atto = 1.e-18 |
conversion factor | |
static const double | cbl::par::zepto = 1.e-21 |
conversion factor | |
static const double | cbl::par::yocto = 1.e-24 |
conversion factor | |
static const char | cbl::par::fINT [] = "%i" |
conversion symbol for: int -> std::string | |
static const char | cbl::par::fLONG [] = "%lli" |
conversion symbol for: long -> std::string | |
static const char | cbl::par::fDP0 [] = "%1.0f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP1 [] = "%2.1f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP2 [] = "%3.2f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP3 [] = "%4.3f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP4 [] = "%5.4f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP5 [] = "%6.5f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP6 [] = "%7.6f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP7 [] = "%8.7f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP8 [] = "%9.8f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP9 [] = "%10.9f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::fDP10 [] = "%11.10f" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee3 [] = "%4.3e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee4 [] = "%5.4e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee5 [] = "%6.5e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee6 [] = "%7.6e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee7 [] = "%8.7e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee8 [] = "%9.8e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee9 [] = "%10.9e" |
conversion symbol for: double -> std::string | |
static const char | cbl::par::ee10 [] = "%11.10e" |
conversion symbol for: double -> std::string | |
static const double | cbl::par::pi = 3.1415926535897932 |
\(\pi\): the ratio of a circle's circumference to its diameter | |
static const double | cbl::par::ee = 2.7182818284590452 |
e: the Euler's constant, defined as \(\lim_{n \to \infty}\left(1+\frac{1}{n}\right)^n\) | |
static const double | cbl::par::hbar = 1.054571726e-34 |
\(\hbar\): the reduced Planck constant, the quantum of action [J s] | |
static const double | cbl::par::cc = 299792.458 |
\({\it c}\): the speed of light in vacuum (the value is exact) [km/sec] | |
static const double | cbl::par::kB = 1.3806488e23 |
\({\it k_B}\): the Boltzmann constant, the conversion factor relating temperature and energy [eV K-1] | |
static const double | cbl::par::sSB = 5.670373e-8 |
\(\sigma_{SB}=\frac{\pi^2k_B^4}{60\hbar^3c^2}\): the Stefan-Boltzmann constant, the factor relating the emissive power of a black body to the fourth power of its temperature [W m-2 K-4] | |
static const double | cbl::par::el = 1.602176565e-19 |
\({e}\): the electrical charge of the electron [C] | |
static const double | cbl::par::alpha = 7.2973525698e-3 |
\({\alpha}=\frac{e^2}{\hbar c}\): the fine-structure constant | |
static const double | cbl::par::epsilon0 = 8.854187817e-12 |
\({\epsilon_0}\): the electric constant (the value is exact) [F/m] | |
static const double | cbl::par::mu0 = 12.566370614e-7 |
\({\mu_0}\): the magnetic constant (the value is exact) [N A-2] | |
static const double | cbl::par::NAv = 6.02214129e23 |
\({N_A}\): the Avogadro constant [mol-1] | |
static const double | cbl::par::GN = 6.6738480e-11 |
\({G_N}\): the Newtonian constant of gravitation [m3 Kg-1 s-2] | |
static const double | cbl::par::gn = 9.80665 |
\({g_n}\): the standard gravitational acceleration (the value is exact) [m s-2] | |
static const double | cbl::par::lP = 1.616199e-35 |
\({l_P}=\sqrt{\hbar G_N/c^3}\): the Planck length [m] | |
static const double | cbl::par::MP = 2.17651e-8 |
\({M_P}=\sqrt{\hbar c/G_N}\): the Planck mass [kg] | |
static const double | cbl::par::Msol = 1.98855e30 |
\({M_\odot}\): the solar mass [kg] | |
static const double | cbl::par::me = 9.10938291e-31 |
\({m_e}\): the mass of the electron [kg] | |
static const double | cbl::par::mn = 1.674927351e-27 |
\({m_n}\): the mass of the neutron [kg] | |
static const double | cbl::par::mp = 1.672621777e-27 |
\({m_p}\): the mass of the proton [kg] | |
static const double | cbl::par::au = 149597870700 |
\({au}\): the astronomical unit (the value is exact) [m] | |
static const double | cbl::par::pc = 3.0856775814671916e16 |
\({pc}\): the parsec, defined as 1au/1arc sec [m] | |
static const double | cbl::par::TCMB = 2.72548 |
\({T_{CMB}}\): the present day CMB temperature [K] | |
static const double | cbl::par::yr = 31557600 |
\({yr}\): one year [s] | |
static const std::string | cbl::par::col_default = "\033[0m" |
default colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_red = "\033[0;31m" |
red colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_bred = "\033[1;91m" |
bold high intensty red colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_onred = "\033[41m" |
background red colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_green = "\033[0;32m" |
green colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_blue = "\033[0;34m" |
blue colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_yellow = "\033[0;33m" |
yellow colour (used when printing something on the screen) | |
static const std::string | cbl::par::col_purple = "\033[0;35m" |
purple colour (used when printing something on the screen) | |
static const std::string | cbl::par::defaultString = "NULL" |
default std::string value | |
static const int | cbl::par::defaultInt = std::numeric_limits<int>::min() |
default integer value | |
static const long | cbl::par::defaultLong = std::numeric_limits<long>::min() |
default long value | |
static const float | cbl::par::defaultFloat = -std::numeric_limits<float>::max() |
default float value | |
static const double | cbl::par::defaultDouble = -std::numeric_limits<double>::max() |
default double value | |
static const std::string | cbl::par::ErrorMsg |
header of error messages for internal usage More... | |
Constants of general use.
This file contains the global parameters and constants of the CosmoBolognaLib
Definition in file Constants.h.