pub struct Const;Implementations§
Source§impl Const
impl Const
pub const PI: f64 = 3.1415926535897931f64
pub const E: f64 = 2.7182818284590451f64
pub const GOLDEN_RATIO: f64 = 1.6180339887498949f64
pub const SQRT_2: f64 = 1.4142135623730951f64
pub const LN_2: f64 = 0.69314718055994529f64
pub const LN_10: f64 = 2.3025850929940459f64
pub const EULER_MASCHERONI: f64 = 0.57721566490153287f64
pub const SPEED_OF_LIGHT: f64 = 299792458f64
pub const GRAVITATIONAL_CONSTANT: f64 = 6.6742999999999994E-11f64
pub const PLANCK_CONSTANT: f64 = 6.6260701499999998E-34f64
pub const REDUCED_PLANCK_CONSTANT: f64 = 1.0545718176461565E-34f64
pub const BOLTZMANN_CONSTANT: f64 = 1.3806490000000001E-23f64
pub const ELEMENTARY_CHARGE: f64 = 1.6021766339999999E-19f64
pub const ELECTRON_MASS: f64 = 9.1093837015000007E-31f64
pub const PROTON_MASS: f64 = 1.6726219236900001E-27f64
pub const NEUTRON_MASS: f64 = 1.6749274713999998E-27f64
pub const AVOGADRO_CONSTANT: f64 = 6.0221407599999999E+23f64
pub const VACUUM_PERMITTIVITY: f64 = 8.8541878128000006E-12f64
pub const VACUUM_PERMEABILITY: f64 = 1.2566370621199999E-6f64
pub const FINE_STRUCTURE_CONSTANT: f64 = 0.0072973525693000004f64
pub const RYDBERG_CONSTANT: f64 = 10973731.568159999f64
pub const ATOMIC_MASS_UNIT: f64 = 1.6605390666E-27f64
pub const FARADAY_CONSTANT: f64 = 96485.332123100001f64
pub const GAS_CONSTANT: f64 = 8.3144626181532395f64
pub const STEFAN_BOLTZMANN_CONSTANT: f64 = 5.6703744189999999E-8f64
pub const WIEN_DISPLACEMENT_CONSTANT: f64 = 0.002897771955f64
pub const ASTRONOMICAL_UNIT: f64 = 149597870700f64
pub const LIGHT_YEAR: f64 = 9460730472580800f64
pub const PARSEC: f64 = 30856775814913672f64
pub const SOLAR_MASS: f64 = 1.988847E+30f64
pub const EARTH_MASS: f64 = 5.9721669999999995E+24f64
pub const EARTH_RADIUS: f64 = 6371000f64
pub const SOLAR_RADIUS: f64 = 6.957E+8f64
pub const HUBBLE_CONSTANT: f64 = 67.400000000000006f64
pub fn pi(precision: Option<u32>) -> f64
pub fn e(precision: Option<u32>) -> f64
pub fn golden_ratio(precision: Option<u32>) -> f64
pub fn sqrt_2(precision: Option<u32>) -> f64
pub fn ln_2(precision: Option<u32>) -> f64
pub fn ln_10(precision: Option<u32>) -> f64
pub fn euler_mascheroni(precision: Option<u32>) -> f64
pub fn speed_of_light(unit: Speed) -> Speed
pub fn gravitational_constant(unit: Force) -> Force
pub fn planck_constant(unit: Energy) -> Energy
pub fn reduced_planck_constant(unit: Energy) -> Energy
pub fn boltzmann_constant(unit: Energy) -> Energy
pub fn elementary_charge(unit: ElectricCharge) -> ElectricCharge
pub fn electron_mass(unit: Mass) -> Mass
pub fn proton_mass(unit: Mass) -> Mass
pub fn avogadro_constant(unit: Frequency) -> Frequency
pub fn fine_structure_constant() -> f64
pub fn rydberg_constant(unit: Frequency) -> Frequency
pub fn atomic_mass_unit(unit: Mass) -> Mass
pub fn faraday_constant(unit: ElectricCharge) -> ElectricCharge
pub fn gas_constant(unit: Energy) -> Energy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more