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.
Type members
Classlikes
Types
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
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
Molar mass constant: 0.99999999965(30)×10−3 kg/mol
Molar mass constant: 0.99999999965(30)×10−3 kg/mol
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
Value members
Concrete methods
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"