WPILibC++ 2024.3.2
units::constants Namespace Reference

Unit Containers

using PI = unit< std::ratio< 1 >, dimensionless::scalar, std::ratio< 1 > >
 
static constexpr const unit_t< PIpi (1)
 Ratio of a circle's circumference to its diameter. More...
 
static constexpr const velocity::meters_per_second_t c (299792458.0)
 Speed of light in vacuum. More...
 
static constexpr const unit_t< compound_unit< cubed< length::meters >, inverse< mass::kilogram >, inverse< squared< time::seconds > > > > G (6.67408e-11)
 Newtonian constant of gravitation. More...
 
static constexpr const unit_t< compound_unit< energy::joule, time::seconds > > h (6.626070040e-34)
 Planck constant. More...
 
static constexpr const unit_t< compound_unit< force::newtons, inverse< squared< current::ampere > > > > mu0 (pi *4.0e-7 *force::newton_t(1)/units::math::cpow< 2 >(current::ampere_t(1)))
 vacuum permeability. More...
 
static constexpr const unit_t< compound_unit< capacitance::farad, inverse< length::meter > > > epsilon0 (1.0/(mu0 *math::cpow< 2 >(c)))
 vacuum permitivity. More...
 
static constexpr const impedance::ohm_t Z0 (mu0 *c)
 characteristic impedance of vacuum. More...
 
static constexpr const unit_t< compound_unit< force::newtons, area::square_meter, inverse< squared< charge::coulomb > > > > k_e (1.0/(4 *pi *epsilon0))
 Coulomb's constant. More...
 
static constexpr const charge::coulomb_t e (1.6021766208e-19)
 elementary charge. More...
 
static constexpr const mass::kilogram_t m_e (9.10938356e-31)
 electron mass. More...
 
static constexpr const mass::kilogram_t m_p (1.672621898e-27)
 proton mass. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< magnetic_field_strength::tesla > > > mu_B (e *h/(4 *pi *m_e))
 Bohr magneton. More...
 
static constexpr const unit_t< inverse< substance::mol > > N_A (6.022140857e23)
 Avagadro's Number. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin >, inverse< substance::moles > > > R (8.3144598)
 Gas constant. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin > > > k_B (R/N_A)
 Boltzmann constant. More...
 
static constexpr const unit_t< compound_unit< charge::coulomb, inverse< substance::mol > > > F (N_A *e)
 Faraday constant. More...
 
static constexpr const unit_t< compound_unit< power::watts, inverse< area::square_meters >, inverse< squared< squared< temperature::kelvin > > > > > sigma ((2 *math::cpow< 5 >(pi) *math::cpow< 4 >(R))/(15 *math::cpow< 3 >(h) *math::cpow< 2 >(c) *math::cpow< 4 >(N_A)))
 Stefan-Boltzmann constant. More...
 

Typedef Documentation

◆ PI

using units::constants::PI = typedef unit<std::ratio<1>, dimensionless::scalar, std::ratio<1> >

Function Documentation

◆ c()

static constexpr const velocity::meters_per_second_t units::constants::c ( 299792458.  0)
staticconstexpr

Speed of light in vacuum.

◆ e()

static constexpr const charge::coulomb_t units::constants::e ( 1.6021766208e-  19)
staticconstexpr

elementary charge.

◆ epsilon0()

static constexpr const unit_t< compound_unit< capacitance::farad, inverse< length::meter > > > units::constants::epsilon0 ( 1.0/  mu0 *math::cpow< 2 >(c))
staticconstexpr

vacuum permitivity.

◆ F()

static constexpr const unit_t< compound_unit< charge::coulomb, inverse< substance::mol > > > units::constants::F ( N_A e)
staticconstexpr

Faraday constant.

◆ G()

static constexpr const unit_t< compound_unit< cubed< length::meters >, inverse< mass::kilogram >, inverse< squared< time::seconds > > > > units::constants::G ( 6.67408e 11)
staticconstexpr

Newtonian constant of gravitation.

◆ h()

static constexpr const unit_t< compound_unit< energy::joule, time::seconds > > units::constants::h ( 6.626070040e-  34)
staticconstexpr

Planck constant.

◆ k_B()

static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin > > > units::constants::k_B ( R N_A)
staticconstexpr

Boltzmann constant.

◆ k_e()

static constexpr const unit_t< compound_unit< force::newtons, area::square_meter, inverse< squared< charge::coulomb > > > > units::constants::k_e ( 1.0/  4 *pi *epsilon0)
staticconstexpr

Coulomb's constant.

◆ m_e()

static constexpr const mass::kilogram_t units::constants::m_e ( 9.10938356e 31)
staticconstexpr

electron mass.

◆ m_p()

static constexpr const mass::kilogram_t units::constants::m_p ( 1.672621898e 27)
staticconstexpr

proton mass.

◆ mu0()

static constexpr const unit_t< compound_unit< force::newtons, inverse< squared< current::ampere > > > > units::constants::mu0 ( pi *4.0e-7 *  force::newton_t1)/units::math::cpow< 2 >(current::ampere_t(1))
staticconstexpr

vacuum permeability.

◆ mu_B()

static constexpr const unit_t< compound_unit< energy::joules, inverse< magnetic_field_strength::tesla > > > units::constants::mu_B ( e *h 4 *pi *m_e)
staticconstexpr

Bohr magneton.

◆ N_A()

static constexpr const unit_t< inverse< substance::mol > > units::constants::N_A ( 6.  022140857e23)
staticconstexpr

Avagadro's Number.

◆ pi()

static constexpr const unit_t< PI > units::constants::pi ( )
staticconstexpr

Ratio of a circle's circumference to its diameter.

◆ R()

static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin >, inverse< substance::moles > > > units::constants::R ( 8.  3144598)
staticconstexpr

Gas constant.

◆ sigma()

static constexpr const unit_t< compound_unit< power::watts, inverse< area::square_meters >, inverse< squared< squared< temperature::kelvin > > > > > units::constants::sigma ( (2 *math::cpow< 5 >(pi) *math::cpow< 4 >(R))/(15 *math::cpow< 3 >(h) *math::cpow< 2 >(c) *math::cpow< 4 >(N_A))  )
staticconstexpr

Stefan-Boltzmann constant.

◆ Z0()

static constexpr const impedance::ohm_t units::constants::Z0 ( mu0 c)
staticconstexpr

characteristic impedance of vacuum.