constants

object constants

A selection of physical constants.

Constants are as as defined in the following table:

All units tagged as either "universal" or "frequently-used" in this table are defined. Other constant definitions can be included on request.

class Object
trait Matchable
class Any

Type members

Classlikes

object infra

Types

atomic mass constant: 1.66053906660(50)×10−27 kg

atomic mass constant: 1.66053906660(50)×10−27 kg

final type AvogadroConstant

Avogadro's number: 6.02214076×10+23 mol-1

Avogadro's number: 6.02214076×10+23 mol-1

final type BohrMagneton

Bohr magneton: 9.2740100783(28)×10−24 J/T

Bohr magneton: 9.2740100783(28)×10−24 J/T

final type BohrRadius

Bohr radius: 5.29177210903(80)×10−11 m

Bohr radius: 5.29177210903(80)×10−11 m

Boltzmann's constant: 1.380649×10−23 J⋅K−1

Boltzmann's constant: 1.380649×10−23 J⋅K−1

Characteristic impedance of vacuum: 376.730313668(57) Ω

Characteristic impedance of vacuum: 376.730313668(57) Ω

Classical electron radius: 2.8179403262(13)×10−15 m

Classical electron radius: 2.8179403262(13)×10−15 m

Conductance quantum: 7.748091729...×10−5 S

Conductance quantum: 7.748091729...×10−5 S

final type ElectronGFactor

Electron g-factor: −2.00231930436256(35)

Electron g-factor: −2.00231930436256(35)

final type ElectronMass

Electron mass: 9.1093837015(28)×10−31 kg

Electron mass: 9.1093837015(28)×10−31 kg

final type ElectronVolt

electron volt: 1.602176634×10−19 J

electron volt: 1.602176634×10−19 J

final type ElementaryCharge

The elementary charge: 1.602176634×10−19 C

The elementary charge: 1.602176634×10−19 C

final type FaradayConstant

Faraday constant: 96485.33212... C/mol

Faraday constant: 96485.33212... C/mol

Fermi coupling constant: 1.1663787(6)×10−5 GeV−2

Fermi coupling constant: 1.1663787(6)×10−5 GeV−2

Fine structure constant: 7.2973525693(11)×10−3

Fine structure constant: 7.2973525693(11)×10−3

Newton's constant of gravitation: 6.67430(15)×10−11 m3⋅kg−1⋅s−2

Newton's constant of gravitation: 6.67430(15)×10−11 m3⋅kg−1⋅s−2

Inverse fine structure constant: 137.035999084

Inverse fine structure constant: 137.035999084

Josephson constant: 483597.8484...×10+9 Hz/V

Josephson constant: 483597.8484...×10+9 Hz/V

Magnetic flux quantum: 2.067833848...×10−15 Wb

Magnetic flux quantum: 2.067833848...×10−15 Wb

final type MolarGasConstant

Molar gas constant: 8.314462618... J/(mol⋅K)

Molar gas constant: 8.314462618... J/(mol⋅K)

Molar mass constant: 0.99999999965(30)×10−3 kg/mol

Molar mass constant: 0.99999999965(30)×10−3 kg/mol

final type NeutronMass

Neutron mass: 1.67492749804(95)×10−27 kg

Neutron mass: 1.67492749804(95)×10−27 kg

final type NuclearMagneton

Nuclear magneton: 5.0507837461(15)×10−27 J/T

Nuclear magneton: 5.0507837461(15)×10−27 J/T

final type PlanckConstant

Planck's constant: 6.62607015×10−34 J⋅s

Planck's constant: 6.62607015×10−34 J⋅s

final type ProtonMass

Proton mass: 1.67262192369(51)×10−27 kg

Proton mass: 1.67262192369(51)×10−27 kg

Reduced Planck Constant: 1.054571817×10−34 J⋅s

Reduced Planck Constant: 1.054571817×10−34 J⋅s

final type SpeedOfLight

Speed of light in a vacuum: 299792458 m/s

Speed of light in a vacuum: 299792458 m/s

Stefan-Boltzmann constant: 5.670374419...×10−8 W⋅m−2⋅K−4

Stefan-Boltzmann constant: 5.670374419...×10−8 W⋅m−2⋅K−4

Vacuum electric permittivity: 8.8541878128(13)×10−12 F/m

Vacuum electric permittivity: 8.8541878128(13)×10−12 F/m

Vacuum magnetic permeability: 1.25663706212(19)×10−6 N⋅A−2

Vacuum magnetic permeability: 1.25663706212(19)×10−6 N⋅A−2

Von Klitzing constant: 25812.80745... Ω

Von Klitzing constant: 25812.80745... Ω

Value members

Concrete methods

transparent inline def constant[V, CU](using cq: ConstQ[CU], vc: ValueConversion[Rational, V]): Quantity[V, QU]

Obtain a Quantity representing a physical constant

Obtain a Quantity representing a physical constant

Type parameters:
CU

the unit type name representing the constant

V

the desired value type of the constant

Returns:

a value Quantity[V, QU] where QU is the unit type of the constant

import coulomb.units.constants.{*, given}
val planck = constant[Double, PlanckConstant]
planck.show // => "6.62607015E-34 J s"

Givens

Givens

given ctx_unit_AtomicMassConstant: DerivedUnit[AtomicMassConstant, 166053906660L / 10 ^ 38 * Kilogram, "atomic-mass-constant", "mᵤ"]
given ctx_unit_AvogadroConstant: DerivedUnit[AvogadroConstant, 602214076L * 10 ^ 15 / Mole, "avogadro-constant", "Nₐ"]
given ctx_unit_BohrMagneton: DerivedUnit[BohrMagneton, 92740100783L / 10 ^ 34 * Joule / Tesla, "bohr-magneton", "μB"]
given ctx_unit_BohrRadius: DerivedUnit[BohrRadius, 529177210903L / 10 ^ 22 * Meter, "bohr-radius", "a₀"]
given ctx_unit_BoltzmannConstant: DerivedUnit[BoltzmannConstant, 1380649L / 10 ^ 29 * Joule / Kelvin, "boltzmann-constant", "k"]
given ctx_unit_CharacteristicImpedanceOfVacuum: DerivedUnit[CharacteristicImpedanceOfVacuum, 376730313668L / 10 ^ 9 * Ohm, "characteristic-impedance-of-vacuum", "Z₀"]
given ctx_unit_ClassicalElectronRadius: DerivedUnit[ClassicalElectronRadius, 28179403262L / 10 ^ 25 * Meter, "classical-electron-radius", "rₑ"]
given ctx_unit_ConductanceQuantum: DerivedUnit[ConductanceQuantum, 7748091729L / 10 ^ 14 * Siemens, "conductance-quantum", "G₀"]
given ctx_unit_ElectronGFactor: DerivedUnit[ElectronGFactor, -200231930436256L / 10 ^ 14, "electron-g-factor", "rₑ"]
given ctx_unit_ElectronMass: DerivedUnit[ElectronMass, 91093837015L / 10 ^ 41 * Kilogram, "electron-mass", "mₑ"]
given ctx_unit_ElectronVolt: DerivedUnit[ElectronVolt, 1602176634L / 10 ^ 28 * Joule, "electron-volt", "eV"]
given ctx_unit_ElementaryCharge: DerivedUnit[ElementaryCharge, 1602176634L / 10 ^ 28 * Coulomb, "elementary-charge", "e"]
given ctx_unit_FaradayConstant: DerivedUnit[FaradayConstant, 9648533212L / 10 ^ 5 * Coulomb / Mole, "faraday-constant", "F"]
given ctx_unit_FermiCouplingConstant: DerivedUnit[FermiCouplingConstant, 11663787L / 10 ^ 12 * Giga * ElectronVolt ^ -2, "fermi-coupling-constant", "GF"]
given ctx_unit_FineStructureConstant: DerivedUnit[FineStructureConstant, 72973525693L / 10 ^ 13, "fine-structure-constant", "α"]
given ctx_unit_GravitationalConstant: DerivedUnit[GravitationalConstant, 667430 / 10 ^ 16 * Meter ^ 3 / Kilogram * Second ^ 2, "gravitational-constant", "G"]
given ctx_unit_InverseFineStructureConstant: DerivedUnit[InverseFineStructureConstant, 137035999084L / 10 ^ 9, "inverse-fine-structure-constant", "α⁻ⁱ"]
given ctx_unit_JosephsonConstant: DerivedUnit[JosephsonConstant, 4835978484L * 10 ^ 5 * Hertz / Volt, "josephson-constant", "Kⱼ"]
given ctx_unit_MagneticFluxQuantum: DerivedUnit[MagneticFluxQuantum, 2067833848L / 10 ^ 24 * Weber, "magnetic-flux-quantum", "Φ₀"]
given ctx_unit_MolarGasConstant: DerivedUnit[MolarGasConstant, 8314462618L / 10 ^ 9 * Joule / Mole * Kelvin, "molar-gas-constant", "R"]
given ctx_unit_MolarMassConstant: DerivedUnit[MolarMassConstant, 99999999965L / 10 ^ 14 * Kilogram / Mole, "molar-mass-constant", "Mᵤ"]
given ctx_unit_NeutronMass: DerivedUnit[NeutronMass, 167492749804L / 10 ^ 38 * Kilogram, "neutron-mass", "mₚ"]
given ctx_unit_NuclearMagneton: DerivedUnit[NuclearMagneton, 50507837461L / 10 ^ 37 * Joule / Tesla, "nuclear-magneton", "μₙ"]
given ctx_unit_PlanckConstant: DerivedUnit[PlanckConstant, 662607015 / 10 ^ 42 * Joule * Second, "planck-constant", "ℎ"]
given ctx_unit_ProtonMass: DerivedUnit[ProtonMass, 167262192369L / 10 ^ 38 * Kilogram, "proton-mass", "mₚ"]
given ctx_unit_ReducedPlanckConstant: DerivedUnit[ReducedPlanckConstant, 1054571817 / 10 ^ 43 * Joule * Second, "reduced-planck-constant", "ℏ"]
given ctx_unit_SpeedOfLight: DerivedUnit[SpeedOfLight, 299792458 * Meter / Second, "speed-of-light", "c"]
given ctx_unit_StefanBoltzmannConstant: DerivedUnit[StefanBoltzmannConstant, 5670374419L / 10 ^ 17 * Watt / Meter ^ 2 * Kelvin ^ 4, "stefan-boltzmann-constant", "𝞼"]
given ctx_unit_VacuumElectricPermittivity: DerivedUnit[VacuumElectricPermittivity, 88541878128L / 10 ^ 22 * Farad / Meter, "vacuum-electric-permittivity", "ε₀"]
given ctx_unit_VacuumMagneticPermeability: DerivedUnit[VacuumMagneticPermeability, 125663706212L / 10 ^ 17 * Newton / Ampere ^ 2, "vacuum-magnetic-permeability", "μ₀"]
given ctx_unit_VonKlitzingConstant: DerivedUnit[VonKlitzingConstant, 2581280745L / 10 ^ 5 * Ohm, "von-klitzing-constant", "Rₖ"]

Exports

Defined exports

final type Ampere = Ampere
Exported from mksa$
final type Coulomb = Coulomb
Exported from mksa$
final type Farad = Farad
Exported from mksa$
final type Giga = Giga
Exported from prefixes$
final type Henry = Henry
Exported from mksa$
final type Hertz = Hertz
Exported from mksa$
final type Joule = Joule
Exported from mksa$
final type Kelvin = Kelvin
Exported from si$
final type Kilogram = Kilogram
Exported from mksa$
final type Meter = Meter
Exported from mksa$
final type Mole = Mole
Exported from si$
final type Newton = Newton
Exported from mksa$
final type Ohm = Ohm
Exported from mksa$
final type Pascal = Pascal
Exported from mksa$
final type Radian = Radian
Exported from mksa$
final type Second = Second
Exported from mksa$
final type Siemens = Siemens
Exported from mksa$
final type Steradian = Steradian
Exported from mksa$
final type Tesla = Tesla
Exported from mksa$
final type Volt = Volt
Exported from mksa$
final type Watt = Watt
Exported from mksa$
final type Weber = Weber
Exported from mksa$
Exported from mksa
Exported from mksa
Exported from mksa
Exported from prefixes
Exported from mksa
Exported from mksa
Exported from mksa
Exported from si
Exported from mksa
Exported from mksa
Exported from si
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa
Exported from mksa