diff --git a/include/boost/units/systems/si/codata/alpha_constants.hpp b/include/boost/units/systems/si/codata/alpha_constants.hpp index fa6e7f5a..1e5108f1 100644 --- a/include/boost/units/systems/si/codata/alpha_constants.hpp +++ b/include/boost/units/systems/si/codata/alpha_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,33 +29,30 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// alpha particle mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha,quantity,6.64465620e-27*kilograms,3.3e-34*kilograms); -/// alpha-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha_over_m_e,quantity,7294.2995365*dimensionless(),3.1e-6*dimensionless()); -/// alpha-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha_over_m_p,quantity,3.97259968951*dimensionless(),4.1e-10*dimensionless()); -/// alpha molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_alpha,quantity,4.001506179127e-3*kilograms/mole,6.2e-14*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha, quantity, 6.6446573357e-27*kilograms, 2.0e-36*kilograms); +/// alpha particle-electron mass ratio +BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha_over_m_e, quantity, 7294.29954142*dimensionless(), 2.0e-7*dimensionless()); +/// alpha particle-proton mass ratio +BOOST_UNITS_PHYSICAL_CONSTANT(m_alpha_over_m_p, quantity, 3.97259969009*dimensionless(), 2.0e-10*dimensionless()); +/// alpha particle molar mass +BOOST_UNITS_PHYSICAL_CONSTANT(M_alpha, quantity, 4.0015061777e-3*kilograms/mole, 1.2e-12*kilograms/mole); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/atomic-nuclear_constants.hpp b/include/boost/units/systems/si/codata/atomic-nuclear_constants.hpp index 80b4c279..107cbcd6 100644 --- a/include/boost/units/systems/si/codata/atomic-nuclear_constants.hpp +++ b/include/boost/units/systems/si/codata/atomic-nuclear_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -21,31 +21,31 @@ #include #include +/// \file +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 + namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - -// ATOMIC AND NUCLEAR -/// fine structure constant -BOOST_UNITS_PHYSICAL_CONSTANT(alpha,quantity,7.2973525376e-3*dimensionless(),5.0e-12*dimensionless()); +/// fine-structure constant +BOOST_UNITS_PHYSICAL_CONSTANT(alpha, quantity, 7.2973525693e-3*dimensionless(), 1.1e-12*dimensionless()); /// Rydberg constant -BOOST_UNITS_PHYSICAL_CONSTANT(R_infinity,quantity,10973731.568527/meter,7.3e-5/meter); +BOOST_UNITS_PHYSICAL_CONSTANT(R_infinity, quantity, 10973731.568160/meter, 2.1e-5/meter); /// Bohr radius -BOOST_UNITS_PHYSICAL_CONSTANT(a_0,quantity,0.52917720859e-10*meters,3.6e-20*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(a_0, quantity, 0.529177210903e-10*meters, 8.0e-21*meters); /// Hartree energy -BOOST_UNITS_PHYSICAL_CONSTANT(E_h,quantity,4.35974394e-18*joules,2.2e-25*joules); +BOOST_UNITS_PHYSICAL_CONSTANT(E_h, quantity, 4.3597447222071e-18*joules, 8.5e-30*joules); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/deuteron_constants.hpp b/include/boost/units/systems/si/codata/deuteron_constants.hpp index 167c5767..77abbe42 100644 --- a/include/boost/units/systems/si/codata/deuteron_constants.hpp +++ b/include/boost/units/systems/si/codata/deuteron_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,49 +29,46 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// deuteron mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_d,quantity,3.34358320e-27*kilograms,1.7e-34*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_d, quantity, 3.3435837724e-27*kilograms, 1.0e-36*kilograms); /// deuteron-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_e,quantity,3670.4829654*dimensionless(),1.6e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_e, quantity, 3670.48296788*dimensionless(), 1.0e-7*dimensionless()); /// deuteron-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_p,quantity,1.99900750108*dimensionless(),2.2e-10*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_p, quantity, 1.99900750139*dimensionless(), 1.0e-10*dimensionless()); /// deuteron molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_d,quantity,2.013553212724e-3*kilograms/mole,7.8e-14*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_d, quantity, 2.01355321205e-3*kilograms/mole, 6.1e-13*kilograms/mole); /// deuteron rms charge radius -BOOST_UNITS_PHYSICAL_CONSTANT(R_d,quantity,2.1402e-15*meters,2.8e-18*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(R_d, quantity, 2.12799e-15*meters, 7.4e-19*meters); /// deuteron magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d,quantity,0.433073465e-26*joules/tesla,1.1e-34*joules/tesla); -/// deuteron-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_B,quantity,0.4669754556e-3*dimensionless(),3.9e-12*dimensionless()); -/// deuteron-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_N,quantity,0.8574382308*dimensionless(),7.2e-9*dimensionless()); -/// deuteron g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_d,quantity,0.8574382308*dimensionless(),7.2e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d, quantity, 4.330735094e-27*joules/tesla, 1.1e-35*joules/tesla); +/// deuteron magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_B, quantity, 4.669754570e-4*dimensionless(), 1.2e-12*dimensionless()); +/// deuteron magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_N, quantity, 0.8574382338*dimensionless(), 2.0e-9*dimensionless()); +/// deuteron g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_d, quantity, 0.8574382338*dimensionless(), 2.0e-9*dimensionless()); /// deuteron-electron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_e,quantity,-4.664345537e-4*dimensionless(),3.9e-12*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_e, quantity, -4.664345551e-4*dimensionless(), 1.2e-12*dimensionless()); /// deuteron-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_p,quantity,0.3070122070*dimensionless(),2.4e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_p, quantity, 0.30701220939*dimensionless(), 7.0e-10*dimensionless()); /// deuteron-neutron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_n,quantity,-0.44820652*dimensionless(),1.1e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_n, quantity, -0.44820653*dimensionless(), 1.0e-7*dimensionless()); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/electromagnetic_constants.hpp b/include/boost/units/systems/si/codata/electromagnetic_constants.hpp index bad7be52..85e193fe 100644 --- a/include/boost/units/systems/si/codata/electromagnetic_constants.hpp +++ b/include/boost/units/systems/si/codata/electromagnetic_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -11,13 +11,6 @@ #ifndef BOOST_UNITS_CODATA_ELECTROMAGNETIC_CONSTANTS_HPP #define BOOST_UNITS_CODATA_ELECTROMAGNETIC_CONSTANTS_HPP -/// -/// \file -/// \brief CODATA recommended values of fundamental electromagnetic constants. -/// \details CODATA recommended values of the fundamental physical constants: NIST SP 961 -/// CODATA 2006 values as of 2007/03/30 -/// - #include #include @@ -34,37 +27,40 @@ #include +/// \file +/// 2018 CODATA recommended values of fundamental electromagnetic constants as of 2019/06/10 + namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { // ELECTROMAGNETIC /// elementary charge -BOOST_UNITS_PHYSICAL_CONSTANT(e,quantity,1.602176487e-19*coulombs,4.0e-27*coulombs); -/// elementary charge to Planck constant ratio -BOOST_UNITS_PHYSICAL_CONSTANT(e_over_h,quantity,2.417989454e14*amperes/joule,6.0e6*amperes/joule); +BOOST_UNITS_PHYSICAL_CONSTANT(e, quantity, 1.602176634e-19*coulombs, 0.0*coulombs); +/// elementary charge over Planck constant @deprecated +BOOST_UNITS_PHYSICAL_CONSTANT(e_over_h, quantity, 2.4179892420849181e+14*amperes/joule, 0.0*amperes/joule); /// magnetic flux quantum -BOOST_UNITS_PHYSICAL_CONSTANT(Phi_0,quantity,2.067833667e-15*webers,5.2e-23*webers); +BOOST_UNITS_PHYSICAL_CONSTANT(Phi_0, quantity, 2.067833848461929e-15*webers, 0.0*webers); /// conductance quantum -BOOST_UNITS_PHYSICAL_CONSTANT(G_0,quantity,7.7480917004e-5*siemens,5.3e-14*siemens); +BOOST_UNITS_PHYSICAL_CONSTANT(G_0, quantity, 7.748091729863650e-5*siemens, 0.0*siemens); /// Josephson constant -BOOST_UNITS_PHYSICAL_CONSTANT(K_J,quantity,483597.891e9*hertz/volt,1.2e7*hertz/volt); +BOOST_UNITS_PHYSICAL_CONSTANT(K_J, quantity, 4.835978484169836e+14*hertz/volt, 0.0*hertz/volt); /// von Klitzing constant -BOOST_UNITS_PHYSICAL_CONSTANT(R_K,quantity,25812.807557*ohms,1.77e-5*ohms); +BOOST_UNITS_PHYSICAL_CONSTANT(R_K, quantity, 25812.80745930451*ohms, 0.0*ohms); /// Bohr magneton -BOOST_UNITS_PHYSICAL_CONSTANT(mu_B,quantity,927.400915e-26*joules/tesla,2.3e-31*joules/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_B, quantity, 9.2740100783e-24*joules/tesla, 2.8e-33*joules/tesla); /// nuclear magneton -BOOST_UNITS_PHYSICAL_CONSTANT(mu_N,quantity,5.05078324e-27*joules/tesla,1.3e-34*joules/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_N, quantity, 5.0507837461e-27*joules/tesla, 1.5e-36*joules/tesla); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/electron_constants.hpp b/include/boost/units/systems/si/codata/electron_constants.hpp index 4582c799..5426fea0 100644 --- a/include/boost/units/systems/si/codata/electron_constants.hpp +++ b/include/boost/units/systems/si/codata/electron_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,73 +29,70 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// electron mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_e,quantity,9.10938215e-31*kilograms,4.5e-38*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e, quantity, 9.1093837015e-31*kilograms, 2.8e-40*kilograms); /// electron-muon mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_mu,quantity,4.83633171e-3*dimensionless(),1.2e-10*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_mu, quantity, 4.83633169e-3*dimensionless(), 1.1e-10*dimensionless()); /// electron-tau mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_tau,quantity,2.87564e-4*dimensionless(),4.7e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_tau, quantity, 2.87585e-4*dimensionless(), 1.9e-8*dimensionless()); /// electron-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_p,quantity,5.4461702177e-4*dimensionless(),2.4e-13*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_p, quantity, 5.44617021487e-4*dimensionless(), 3.3e-14*dimensionless()); /// electron-neutron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_n,quantity,5.4386734459e-4*dimensionless(),3.3e-13*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_n, quantity, 5.4386734424e-4*dimensionless(), 2.6e-13*dimensionless()); /// electron-deuteron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_d,quantity,2.7244371093e-4*dimensionless(),1.2e-13*dimensionless()); -/// electron-alpha particle mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_alpha,quantity,1.37093355570e-4*dimensionless(),5.8e-14*dimensionless()); -/// electron charge to mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_e,quantity,1.758820150e11*coulombs/kilogram,4.4e3*coulombs/kilogram); +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_d, quantity, 2.724437107462e-4*dimensionless(), 9.6e-15*dimensionless()); +/// electron to alpha particle mass ratio +BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_alpha, quantity, 1.370933554787e-4*dimensionless(), 4.5e-15*dimensionless()); +/// electron charge to mass quotient +BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_e, quantity, -1.75882001076e+11*coulombs/kilogram, 5.3e+1*coulombs/kilogram); /// electron molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_e,quantity,5.4857990943e-7*kilograms/mole,2.3e-16*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_e, quantity, 5.4857990888e-7*kilograms/mole, 1.7e-16*kilograms/mole); /// Compton wavelength -BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C,quantity,2.4263102175e-12*meters,3.3e-21*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C, quantity, 2.42631023867e-12*meters, 7.3e-22*meters); /// classical electron radius -BOOST_UNITS_PHYSICAL_CONSTANT(r_e,quantity,2.8179402894e-15*meters,5.8e-24*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(r_e, quantity, 2.8179403262e-15*meters, 1.3e-24*meters); /// Thompson cross section -BOOST_UNITS_PHYSICAL_CONSTANT(sigma_e,quantity,0.6652458558e-28*square_meters,2.7e-37*square_meters); +BOOST_UNITS_PHYSICAL_CONSTANT(sigma_e, quantity, 6.6524587321e-29*square_meters, 6.0e-38*square_meters); /// electron magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e,quantity,-928.476377e-26*joules/tesla,2.3e-31*joules/tesla); -/// electron-Bohr magenton moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_B,quantity,-1.00115965218111*dimensionless(),7.4e-13*dimensionless()); -/// electron-nuclear magneton moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_N,quantity,-183.28197092*dimensionless(),8.0e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e, quantity, -9.2847647043e-24*joules/tesla, 2.8e-33*joules/tesla); +/// electron magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_B, quantity, -1.00115965218128*dimensionless(), 1.0e-13*dimensionless()); +/// electron magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_N, quantity, -1838.28197188*dimensionless(), 1.0e-7*dimensionless()); /// electron magnetic moment anomaly -BOOST_UNITS_PHYSICAL_CONSTANT(a_e,quantity,1.15965218111e-3*dimensionless(),7.4e-13*dimensionless()); -/// electron g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_e,quantity,-2.0023193043622*dimensionless(),1.5e-12*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(a_e, quantity, 1.15965218128e-3*dimensionless(), 1.8e-13*dimensionless()); +/// electron g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_e, quantity, -2.00231930436256*dimensionless(), 3.0e-13*dimensionless()); /// electron-muon magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_mu,quantity,206.7669877*dimensionless(),5.2e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_mu, quantity, 206.7669883*dimensionless(), 4.0e-6*dimensionless()); /// electron-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p,quantity,-658.2106848*dimensionless(),5.4e-6*dimensionless()); -/// electron-shielded proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p_prime,quantity,-658.2275971*dimensionless(),7.2e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p, quantity, -658.21068789*dimensionless(), 2.0e-7*dimensionless()); +/// electron to shielded proton magnetic moment ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p_prime, quantity, -658.2275971*dimensionless(), 7.0e-6*dimensionless()); /// electron-neutron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_n,quantity,960.92050*dimensionless(),2.3e-4*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_n, quantity, 960.92050*dimensionless(), 2.0e-4*dimensionless()); /// electron-deuteron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_d,quantity,-2143.923498*dimensionless(),1.8e-5*dimensionless()); -/// electron-shielded helion magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_h_prime,quantity,864.058257*dimensionless(),1.0e-5*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_d, quantity, -2143.9234915*dimensionless(), 5.0e-6*dimensionless()); +/// electron to shielded helion magnetic moment ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_h_prime, quantity, 864.058257*dimensionless(), 1.0e-5*dimensionless()); /// electron gyromagnetic ratio -BOOST_UNITS_PHYSICAL_CONSTANT(gamma_e,quantity,1.760859770e11/second/tesla,4.4e3/second/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(gamma_e, quantity, 1.76085963023e+11/second/tesla, 5.3e+1/second/tesla); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/helion_constants.hpp b/include/boost/units/systems/si/codata/helion_constants.hpp index 4e88242d..06d20053 100644 --- a/include/boost/units/systems/si/codata/helion_constants.hpp +++ b/include/boost/units/systems/si/codata/helion_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,45 +29,42 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// helion mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_h,quantity,5.00641192e-27*kilograms,2.5e-34*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_h, quantity, 5.0064127796e-27*kilograms, 1.5e-36*kilograms); /// helion-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_h_over_m_e,quantity,5495.8852765*dimensionless(),5.2e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_h_over_m_e, quantity, 5495.88528007*dimensionless(), 2.0e-7*dimensionless()); /// helion-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_h_over_m_p,quantity,2.9931526713*dimensionless(),2.6e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_h_over_m_p, quantity, 2.99315267167*dimensionless(), 1.0e-10*dimensionless()); /// helion molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_h,quantity,3.0149322473e-3*kilograms/mole,2.6e-12*kilograms/mole); -/// helion shielded magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime,quantity,-1.074552982e-26*joules/tesla,3.0e-34*joules/tesla); -/// shielded helion-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_B,quantity,-1.158671471e-3*dimensionless(),1.4e-11*dimensionless()); -/// shielded helion-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_N,quantity,-2.127497718*dimensionless(),2.5e-8*dimensionless()); -/// shielded helion-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_p,quantity,-0.761766558*dimensionless(),1.1e-8*dimensionless()); -/// shielded helion-shielded proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_p_prime,quantity,-0.7617861313*dimensionless(),3.3e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(M_h, quantity, 3.01493224613e-3*kilograms/mole, 9.1e-13*kilograms/mole); +/// shielded helion magnetic moment +BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime, quantity, -1.074553090e-26*joules/tesla, 1.3e-34*joules/tesla); +/// shielded helion magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_B, quantity, -1.158671471e-3*dimensionless(), 1.4e-11*dimensionless()); +/// shielded helion magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_N, quantity, -2.127497719*dimensionless(), 2.0e-8*dimensionless()); +/// shielded helion to proton magnetic moment ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_p, quantity, -0.7617665618*dimensionless(), 8.0e-9*dimensionless()); +/// shielded helion to shielded proton magnetic moment ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_h_prime_over_mu_p_prime, quantity, -0.7617861313*dimensionless(), 8.0e-9*dimensionless()); /// shielded helion gyromagnetic ratio -BOOST_UNITS_PHYSICAL_CONSTANT(gamma_h_prime,quantity,2.037894730e8/second/tesla,5.6e-0/second/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(gamma_h_prime, quantity, 2.037894569e+8/second/tesla, 2.4e0/second/tesla); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/muon_constants.hpp b/include/boost/units/systems/si/codata/muon_constants.hpp index c580e3c2..4f4ac52e 100644 --- a/include/boost/units/systems/si/codata/muon_constants.hpp +++ b/include/boost/units/systems/si/codata/muon_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,51 +29,48 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// muon mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_mu,quantity,1.88353130e-28*kilograms,1.1e-35*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_mu, quantity, 1.883531627e-28*kilograms, 4.2e-36*kilograms); /// muon-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_e,quantity,206.7682823*dimensionless(),5.2e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_e, quantity, 206.7682830*dimensionless(), 4.0e-6*dimensionless()); /// muon-tau mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_tau,quantity,5.94592e-2*dimensionless(),9.7e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_tau, quantity, 5.94635e-2*dimensionless(), 4.0e-6*dimensionless()); /// muon-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_p,quantity,0.1126095261*dimensionless(),2.9e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_p, quantity, 0.1126095264*dimensionless(), 2.0e-9*dimensionless()); /// muon-neutron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_n,quantity,0.1124545167*dimensionless(),2.9e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_n, quantity, 0.1124545170*dimensionless(), 2.0e-9*dimensionless()); /// muon molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_mu,quantity,0.1134289256e-3*kilograms/mole,2.9e-12*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_mu, quantity, 1.134289259e-4*kilograms/mole, 2.5e-12*kilograms/mole); /// muon Compton wavelength -BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_mu,quantity,11.73444104e-15*meters,3.0e-22*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_mu, quantity, 1.173444110e-14*meters, 2.6e-22*meters); /// muon magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu,quantity,-4.49044786e-26*joules/tesla,1.6e-33*joules/tesla); -/// muon-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_B,quantity,-4.84197049e-3*dimensionless(),1.2e-10*dimensionless()); -/// muon-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_N,quantity,-8.89059705*dimensionless(),2.3e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu, quantity, -4.49044830e-26*joules/tesla, 1.0e-33*joules/tesla); +/// muon magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_B, quantity, -4.84197047e-3*dimensionless(), 1.1e-10*dimensionless()); +/// muon magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_N, quantity, -8.89059703*dimensionless(), 2.0e-7*dimensionless()); /// muon magnetic moment anomaly -BOOST_UNITS_PHYSICAL_CONSTANT(a_mu,quantity,1.16592069e-3*dimensionless(),6.0e-10*dimensionless()); -/// muon g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_mu,quantity,-2.0023318414*dimensionless(),1.2e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(a_mu, quantity, 1.16592089e-3*dimensionless(), 6.3e-10*dimensionless()); +/// muon g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_mu, quantity, -2.0023318418*dimensionless(), 1.0e-9*dimensionless()); /// muon-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_p,quantity,-3.183345137*dimensionless(),8.5e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_p, quantity, -3.183345142*dimensionless(), 7.0e-8*dimensionless()); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/neutron_constants.hpp b/include/boost/units/systems/si/codata/neutron_constants.hpp index fb971246..3198554e 100644 --- a/include/boost/units/systems/si/codata/neutron_constants.hpp +++ b/include/boost/units/systems/si/codata/neutron_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,51 +29,48 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// neutron mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_n,quantity,1.674927211e-27*kilograms,8.4e-35*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_n, quantity, 1.67492749804e-27*kilograms, 9.5e-37*kilograms); /// neutron-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_e,quantity,1838.6836605*dimensionless(),1.1e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_e, quantity, 1838.68366173*dimensionless(), 8.0e-7*dimensionless()); /// neutron-muon mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_mu,quantity,8.89248409*dimensionless(),2.3e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_mu, quantity, 8.89248406*dimensionless(), 2.0e-7*dimensionless()); /// neutron-tau mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_tau,quantity,0.528740*dimensionless(),8.6e-5*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_tau, quantity, 0.528779*dimensionless(), 3.0e-5*dimensionless()); /// neutron-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_p,quantity,1.00137841918*dimensionless(),4.6e-10*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_p, quantity, 1.00137841931*dimensionless(), 4.0e-10*dimensionless()); /// neutron molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_n,quantity,1.00866491597e-3*kilograms/mole,4.3e-13*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_n, quantity, 1.00866491560e-3*kilograms/mole, 5.7e-13*kilograms/mole); /// neutron Compton wavelength -BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_n,quantity,1.3195908951e-15*meters,2.0e-24*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_n, quantity, 1.31959090581e-15*meters, 7.5e-25*meters); /// neutron magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_n,quantity,-0.96623641e-26*joules/tesla,2.3e-33*joules/tesla); -/// neutron g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_n,quantity,-3.82608545*dimensionless(),9.0e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_n, quantity, -9.6623651e-27*joules/tesla, 2.3e-33*joules/tesla); +/// neutron g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_n, quantity, -3.82608545*dimensionless(), 9.0e-7*dimensionless()); /// neutron-electron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_e,quantity,1.04066882e-3*dimensionless(),2.5e-10*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_e, quantity, 1.04066882e-3*dimensionless(), 2.5e-10*dimensionless()); /// neutron-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p,quantity,-0.68497934*dimensionless(),1.6e-7*dimensionless()); -/// neutron-shielded proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p_prime,quantity,-0.68499694*dimensionless(),1.6e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p, quantity, -0.68497934*dimensionless(), 1.0e-7*dimensionless()); +/// neutron to shielded proton magnetic moment ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p_prime, quantity, -0.68499694*dimensionless(), 1.0e-7*dimensionless()); /// neutron gyromagnetic ratio -BOOST_UNITS_PHYSICAL_CONSTANT(gamma_n,quantity,1.83247185e8/second/tesla,4.3e1/second/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(gamma_n, quantity, 1.83247171e+8/second/tesla, 4.3e+1/second/tesla); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/physico-chemical_constants.hpp b/include/boost/units/systems/si/codata/physico-chemical_constants.hpp index e9ed035f..140b7b63 100644 --- a/include/boost/units/systems/si/codata/physico-chemical_constants.hpp +++ b/include/boost/units/systems/si/codata/physico-chemical_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,46 +29,45 @@ #include /// \file -/// CODATA recommended values of fundamental physico-chemical constants -/// CODATA 2014 values as of 2016/04/26 +/// 2018 CODATA recommended values of fundamental physico-chemical constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { // PHYSICO-CHEMICAL /// Avogadro constant -BOOST_UNITS_PHYSICAL_CONSTANT(N_A,quantity,6.022140857e23/mole,7.4e15/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(N_A, quantity, 6.02214076e+23/mole, 0.0/mole); /// atomic mass constant -BOOST_UNITS_PHYSICAL_CONSTANT(m_u,quantity,1.660539040e-27*kilograms,2.0e-35*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_u, quantity, 1.66053906660e-27*kilograms, 5.0e-37*kilograms); /// Faraday constant -BOOST_UNITS_PHYSICAL_CONSTANT(F,quantity,96485.33289*coulombs/mole,5.9e-4*coulombs/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(F, quantity, 96485.33212331001*coulombs/mole, 0.0*coulombs/mole); /// molar gas constant -BOOST_UNITS_PHYSICAL_CONSTANT(R,quantity,8.3144598*joules/kelvin/mole,4.8e-06*joules/kelvin/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(R, quantity, 8.314462618153240*joules/kelvin/mole, 0.0*joules/kelvin/mole); /// Boltzmann constant -BOOST_UNITS_PHYSICAL_CONSTANT(k_B,quantity,1.38064852e-23*joules/kelvin,7.9e-30*joules/kelvin); +BOOST_UNITS_PHYSICAL_CONSTANT(k_B, quantity, 1.380649e-23*joules/kelvin, 0.0*joules/kelvin); /// Stefan-Boltzmann constant -BOOST_UNITS_PHYSICAL_CONSTANT(sigma_SB,quantity,5.670367e-8*watts/square_meter/pow<4>(kelvin),1.3e-13*watts/square_meter/pow<4>(kelvin)); +BOOST_UNITS_PHYSICAL_CONSTANT(sigma_SB, quantity, 5.670374419184431e-8*watts/square_meter/pow<4>(kelvin), 0.0*watts/square_meter/pow<4>(kelvin)); /// first radiation constant -BOOST_UNITS_PHYSICAL_CONSTANT(c_1,quantity,3.741771790e-16*watt*square_meters,4.6e-24*watt*square_meters); +BOOST_UNITS_PHYSICAL_CONSTANT(c_1, quantity, 3.741771852192758e-16*watt*square_meters, 0.0*watt*square_meters); /// first radiation constant for spectral radiance -BOOST_UNITS_PHYSICAL_CONSTANT(c_1L,quantity,1.191042953e-16*watt*square_meters/steradian,1.5e-24*watt*square_meters/steradian); +BOOST_UNITS_PHYSICAL_CONSTANT(c_1L, quantity, 1.191042972397188e-16*watt*square_meters/steradian, 0.0*watt*square_meters/steradian); /// second radiation constant -BOOST_UNITS_PHYSICAL_CONSTANT(c_2,quantity,1.43877736e-2*meter*kelvin,8.3e-9*meter*kelvin); -/// Wien displacement law constant : lambda_max T -BOOST_UNITS_PHYSICAL_CONSTANT(b,quantity,2.8977729e-3*meter*kelvin,1.7e-9*meter*kelvin); -/// Wien displacement law constant : nu_max/T -BOOST_UNITS_PHYSICAL_CONSTANT(b_prime,quantity,5.8789238e10*hertz/kelvin,3.4e4*hertz/kelvin); +BOOST_UNITS_PHYSICAL_CONSTANT(c_2, quantity, 1.438776877503934e-2*meter*kelvin, 0.0*meter*kelvin); +/// Wien wavelength displacement law constant: lambda_max T +BOOST_UNITS_PHYSICAL_CONSTANT(b, quantity, 2.897771955185172e-3*meter*kelvin, 0.0*meter*kelvin); +/// Wien frequency displacement law constant: nu_max/T +BOOST_UNITS_PHYSICAL_CONSTANT(b_prime, quantity, 5.878925757646825e+10*hertz/kelvin, 0.0*hertz/kelvin); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/proton_constants.hpp b/include/boost/units/systems/si/codata/proton_constants.hpp index 78cce8c1..0b48f1c5 100644 --- a/include/boost/units/systems/si/codata/proton_constants.hpp +++ b/include/boost/units/systems/si/codata/proton_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,65 +29,62 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// proton mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_p,quantity,1.672621637e-27*kilograms,8.3e-35*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_p, quantity, 1.67262192369e-27*kilograms, 5.1e-37*kilograms); /// proton-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_e,quantity,1836.15267247*dimensionless(),8.0e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_e, quantity, 1836.15267343*dimensionless(), 1.0e-7*dimensionless()); /// proton-muon mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_mu,quantity,8.88024339*dimensionless(),2.3e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_mu, quantity, 8.88024337*dimensionless(), 2.0e-7*dimensionless()); /// proton-tau mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_tau,quantity,0.528012*dimensionless(),8.6e-5*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_tau, quantity, 0.528051*dimensionless(), 3.0e-5*dimensionless()); /// proton-neutron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_n,quantity,0.99862347824*dimensionless(),4.6e-10*dimensionless()); -/// proton charge to mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_p,quantity,9.57883392e7*coulombs/kilogram,2.4e0*coulombs/kilogram); +BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_n, quantity, 0.99862347812*dimensionless(), 4.0e-10*dimensionless()); +/// proton charge to mass quotient +BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_p, quantity, 9.5788331560e+7*coulombs/kilogram, 2.9e-2*coulombs/kilogram); /// proton molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_p,quantity,1.00727646677e-3*kilograms/mole,1.0e-13*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_p, quantity, 1.00727646627e-3*kilograms/mole, 3.1e-13*kilograms/mole); /// proton Compton wavelength -BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_p,quantity,1.3214098446e-15*meters,1.9e-24*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_p, quantity, 1.32140985539e-15*meters, 4.0e-25*meters); /// proton rms charge radius -BOOST_UNITS_PHYSICAL_CONSTANT(R_p,quantity,0.8768e-15*meters,6.9e-18*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(R_p, quantity, 8.414e-16*meters, 1.9e-18*meters); /// proton magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p,quantity,1.410606662e-26*joules/tesla,3.7e-34*joules/tesla); -/// proton-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_B,quantity,1.521032209e-3*dimensionless(),1.2e-11*dimensionless()); -/// proton-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_N,quantity,2.792847356*dimensionless(),2.3e-8*dimensionless()); -/// proton g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_p,quantity,5.585694713*dimensionless(),4.6e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p, quantity, 1.41060679736e-26*joules/tesla, 6.0e-36*joules/tesla); +/// proton magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_B, quantity, 1.52103220230e-3*dimensionless(), 4.6e-13*dimensionless()); +/// proton magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_N, quantity, 2.79284734463*dimensionless(), 8.0e-10*dimensionless()); +/// proton g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_p, quantity, 5.5856946893*dimensionless(), 1.0e-9*dimensionless()); /// proton-neutron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_n,quantity,-1.45989806*dimensionless(),3.4e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_over_mu_n, quantity, -1.45989805*dimensionless(), 3.0e-7*dimensionless()); /// shielded proton magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime,quantity,1.410570419e-26*joules/tesla,3.8e-34*joules/tesla); -/// shielded proton-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime_over_mu_B,quantity,1.520993128e-3*dimensionless(),1.7e-11*dimensionless()); -/// shielded proton-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime_over_mu_N,quantity,2.792775598*dimensionless(),3.0e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime, quantity, 1.410570560e-26*joules/tesla, 1.5e-34*joules/tesla); +/// shielded proton magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime_over_mu_B, quantity, 1.520993128e-3*dimensionless(), 1.7e-11*dimensionless()); +/// shielded proton magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_p_prime_over_mu_N, quantity, 2.792775599*dimensionless(), 3.0e-8*dimensionless()); /// proton magnetic shielding correction -BOOST_UNITS_PHYSICAL_CONSTANT(sigma_p_prime,quantity,25.694e-6*dimensionless(),1.4e-8*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(sigma_p_prime, quantity, 2.5689e-5*dimensionless(), 1.1e-8*dimensionless()); /// proton gyromagnetic ratio -BOOST_UNITS_PHYSICAL_CONSTANT(gamma_p,quantity,2.675222099e8/second/tesla,7.0e0/second/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(gamma_p, quantity, 2.6752218744e+8/second/tesla, 1.1e-1/second/tesla); /// shielded proton gyromagnetic ratio -BOOST_UNITS_PHYSICAL_CONSTANT(gamma_p_prime,quantity,2.675153362e8/second/tesla,7.3e0/second/tesla); +BOOST_UNITS_PHYSICAL_CONSTANT(gamma_p_prime, quantity, 2.675153151e+8/second/tesla, 2.9e0/second/tesla); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/tau_constants.hpp b/include/boost/units/systems/si/codata/tau_constants.hpp index ea047bcd..20240b26 100644 --- a/include/boost/units/systems/si/codata/tau_constants.hpp +++ b/include/boost/units/systems/si/codata/tau_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,39 +29,36 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// tau mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_tau,quantity,3.16777e-27*kilograms,5.2e-31*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_tau, quantity, 3.16754e-27*kilograms, 2.1e-31*kilograms); /// tau-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_e,quantity,3477.48*dimensionless(),5.7e-1*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_e, quantity, 3477.23*dimensionless(), 2.0e-1*dimensionless()); /// tau-muon mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_mu,quantity,16.8183*dimensionless(),2.7e-3*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_mu, quantity, 16.8170*dimensionless(), 1.0e-3*dimensionless()); /// tau-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_p,quantity,1.89390*dimensionless(),3.1e-4*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_p, quantity, 1.89376*dimensionless(), 1.0e-4*dimensionless()); /// tau-neutron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_n,quantity,1.89129*dimensionless(),3.1e-4*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_tau_over_m_n, quantity, 1.89115*dimensionless(), 1.7e-4*dimensionless()); /// tau molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_tau,quantity,1.90768e-3*kilograms/mole,3.1e-7*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_tau, quantity, 1.90754e-3*kilograms/mole, 1.3e-7*kilograms/mole); /// tau Compton wavelength -BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_tau,quantity,0.69772e-15*meters,1.1e-19*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_tau, quantity, 6.97771e-16*meters, 4.7e-20*meters); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/triton_constants.hpp b/include/boost/units/systems/si/codata/triton_constants.hpp index 58660827..28028a50 100644 --- a/include/boost/units/systems/si/codata/triton_constants.hpp +++ b/include/boost/units/systems/si/codata/triton_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,47 +29,44 @@ #include /// \file -/// CODATA recommended values of fundamental atomic and nuclear constants -/// CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental atomic and nuclear constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - /// triton mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_t,quantity,5.00735588e-27*kilograms,2.5e-34*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_t, quantity, 5.0073567446e-27*kilograms, 1.5e-36*kilograms); /// triton-electron mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_e,quantity,5496.9215269*dimensionless(),5.1e-6*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_e, quantity, 5496.92153573*dimensionless(), 2.0e-7*dimensionless()); /// triton-proton mass ratio -BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_p,quantity,2.9937170309*dimensionless(),2.5e-9*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_p, quantity, 2.99371703414*dimensionless(), 1.0e-10*dimensionless()); /// triton molar mass -BOOST_UNITS_PHYSICAL_CONSTANT(M_t,quantity,3.0155007134e-3*kilograms/mole,2.5e-12*kilograms/mole); +BOOST_UNITS_PHYSICAL_CONSTANT(M_t, quantity, 3.01550071517e-3*kilograms/mole, 9.2e-13*kilograms/mole); /// triton magnetic moment -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t,quantity,1.504609361e-26*joules/tesla,4.2e-34*joules/tesla); -/// triton-Bohr magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_B,quantity,1.622393657e-3*dimensionless(),2.1e-11*dimensionless()); -/// triton-nuclear magneton ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_N,quantity,2.978962448*dimensionless(),3.8e-8*dimensionless()); -/// triton g-factor -BOOST_UNITS_PHYSICAL_CONSTANT(g_t,quantity,5.957924896*dimensionless(),7.6e-8*dimensionless()); -/// triton-electron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_e,quantity,-1.620514423e-3*dimensionless(),2.1e-11*dimensionless()); -/// triton-proton magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_p,quantity,1.066639908*dimensionless(),1.0e-8*dimensionless()); -/// triton-neutron magnetic moment ratio -BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_n,quantity,-1.55718553*dimensionless(),3.7e-7*dimensionless()); +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t, quantity, 1.5046095202e-26*joules/tesla, 3.0e-35*joules/tesla); +/// triton magnetic moment to Bohr magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_B, quantity, 1.6223936651e-3*dimensionless(), 3.2e-12*dimensionless()); +/// triton magnetic moment to nuclear magneton ratio +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_N, quantity, 2.9789624656*dimensionless(), 5.0e-9*dimensionless()); +/// triton g factor +BOOST_UNITS_PHYSICAL_CONSTANT(g_t, quantity, 5.957924931*dimensionless(), 1.0e-8*dimensionless()); +/// triton-electron magnetic moment ratio @deprecated +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_e, quantity, -1.6205144321e-3*dimensionless(), 3.3e-12*dimensionless()); +/// triton-proton magnetic moment ratio @deprecated +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_p, quantity, 1.0666399191*dimensionless(), 2.2e-9*dimensionless()); +/// triton-neutron magnetic moment ratio @deprecated +BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_n, quantity, -1.55718554*dimensionless(), 3.7e-7*dimensionless()); } // namespace codata -} // namespace constants +} // namespace constants } // namespace si diff --git a/include/boost/units/systems/si/codata/universal_constants.hpp b/include/boost/units/systems/si/codata/universal_constants.hpp index 9aa64c4a..61eee20c 100644 --- a/include/boost/units/systems/si/codata/universal_constants.hpp +++ b/include/boost/units/systems/si/codata/universal_constants.hpp @@ -1,4 +1,4 @@ -// Boost.Units - A C++ library for zero-overhead dimensional analysis and +// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel @@ -29,48 +29,45 @@ #include /// \file -/// CODATA recommended values of fundamental universal constants -/// using CODATA 2006 values as of 2007/03/30 +/// 2018 CODATA recommended values of fundamental universal constants as of 2019/06/10 namespace boost { -namespace units { +namespace units { namespace si { - + namespace constants { namespace codata { -/// CODATA recommended values of the fundamental physical constants: NIST SP 961 - // UNIVERSAL -/// speed of light -BOOST_UNITS_PHYSICAL_CONSTANT(c,quantity,299792458.0*meters/second,0.0*meters/second); -/// magnetic constant (exactly 4 pi x 10^(-7) - error is due to finite precision of pi) -BOOST_UNITS_PHYSICAL_CONSTANT(mu_0,quantity,12.56637061435917295385057353311801153679e-7*newtons/ampere/ampere,0.0*newtons/ampere/ampere); -/// electric constant -BOOST_UNITS_PHYSICAL_CONSTANT(epsilon_0,quantity,8.854187817620389850536563031710750260608e-12*farad/meter,0.0*farad/meter); -/// characteristic impedance of vacuum -BOOST_UNITS_PHYSICAL_CONSTANT(Z_0,quantity,376.7303134617706554681984004203193082686*ohm,0.0*ohm); +/// speed of light in vacuum +BOOST_UNITS_PHYSICAL_CONSTANT(c, quantity, 299792458.0*meters/second, 0.0*meters/second); +/// vacuum magnetic permeability +BOOST_UNITS_PHYSICAL_CONSTANT(mu_0, quantity, 1.25663706212e-6*newtons/ampere/ampere, 1.9e-16*newtons/ampere/ampere); +/// vacuum electric permittivity +BOOST_UNITS_PHYSICAL_CONSTANT(epsilon_0, quantity, 8.8541878128e-12*farad/meter, 1.3e-21*farad/meter); +/// characteristic impedance of vacuum @deprecated +BOOST_UNITS_PHYSICAL_CONSTANT(Z_0, quantity, 376.73031367*ohm, 5.7e-8*ohm); /// Newtonian constant of gravitation -BOOST_UNITS_PHYSICAL_CONSTANT(G,quantity,6.67428e-11*cubic_meters/kilogram/second/second,6.7e-15*cubic_meters/kilogram/second/second); +BOOST_UNITS_PHYSICAL_CONSTANT(G, quantity, 6.67430e-11*cubic_meters/kilogram/second/second, 1.5e-15*cubic_meters/kilogram/second/second); /// Planck constant -BOOST_UNITS_PHYSICAL_CONSTANT(h,quantity,6.62606896e-34*joule*seconds,3.3e-41*joule*seconds); -/// Dirac constant -BOOST_UNITS_PHYSICAL_CONSTANT(hbar,quantity,1.054571628e-34*joule*seconds,5.3e-42*joule*seconds); +BOOST_UNITS_PHYSICAL_CONSTANT(h, quantity, 6.62607015e-34*joule*seconds, 0.0*joule*seconds); +/// reduced Planck constant; Dirac constant +BOOST_UNITS_PHYSICAL_CONSTANT(hbar, quantity, 1.054571817646156e-34*joule*seconds, 0.0*joule*seconds); /// Planck mass -BOOST_UNITS_PHYSICAL_CONSTANT(m_P,quantity,2.17644e-8*kilograms,1.1e-12*kilograms); +BOOST_UNITS_PHYSICAL_CONSTANT(m_P, quantity, 2.176434e-8*kilograms, 2.4e-13*kilograms); /// Planck temperature -BOOST_UNITS_PHYSICAL_CONSTANT(T_P,quantity,1.416785e32*kelvin,7.1e27*kelvin); +BOOST_UNITS_PHYSICAL_CONSTANT(T_P, quantity, 1.416784e+32*kelvin, 1.6e+27*kelvin); /// Planck length -BOOST_UNITS_PHYSICAL_CONSTANT(l_P,quantity,1.616252e-35*meters,8.1e-40*meters); +BOOST_UNITS_PHYSICAL_CONSTANT(l_P, quantity, 1.616255e-35*meters, 1.8e-40*meters); /// Planck time -BOOST_UNITS_PHYSICAL_CONSTANT(t_P,quantity