pub mod math {
pub const PI: f64 = std::f64::consts::PI;
pub const TAU: f64 = 2.0 * PI;
pub const E: f64 = std::f64::consts::E;
pub const EULER: f64 = 0.57721566490153286060;
pub const GOLDEN: f64 = 1.618033988749894848;
pub const SQRT2: f64 = std::f64::consts::SQRT_2;
pub const SQRTPI: f64 = 1.7724538509055160272;
}
pub mod physical {
pub const SPEED_OF_LIGHT: f64 = 299_792_458.0;
pub const GRAVITATIONAL_CONSTANT: f64 = 6.67430e-11;
pub const PLANCK: f64 = 6.62607015e-34;
pub const HBAR: f64 = 1.0545718176461565e-34;
pub const ELEMENTARY_CHARGE: f64 = 1.602176634e-19;
pub const ELECTRON_MASS: f64 = 9.1093837015e-31;
pub const PROTON_MASS: f64 = 1.67262192369e-27;
pub const NEUTRON_MASS: f64 = 1.67492749804e-27;
pub const BOLTZMANN: f64 = 1.380649e-23;
pub const AVOGADRO: f64 = 6.02214076e23;
pub const GAS_CONSTANT: f64 = 8.31446261815324;
pub const FINE_STRUCTURE: f64 = 7.2973525693e-3;
pub const RYDBERG: f64 = 10973731.568160;
pub const STANDARD_GRAVITY: f64 = 9.80665;
pub const VACUUM_PERMITTIVITY: f64 = 8.8541878128e-12;
pub const VACUUM_PERMEABILITY: f64 = 1.25663706212e-6;
pub const STEFAN_BOLTZMANN: f64 = 5.670374419e-8;
}
pub mod astronomical {
pub const ASTRONOMICAL_UNIT: f64 = 1.495978707e11;
pub const LIGHT_YEAR: f64 = 9.460730472580800e15;
pub const PARSEC: f64 = 3.0856775814671916e16;
pub const SOLAR_MASS: f64 = 1.9884e30;
pub const EARTH_MASS: f64 = 5.9722e24;
pub const EARTH_RADIUS: f64 = 6.3781e6;
pub const EARTH_MOON_DISTANCE: f64 = 3.84399e8;
pub const JUPITER_MASS: f64 = 1.8982e27;
pub const JUPITER_RADIUS: f64 = 7.1492e7;
}
pub mod convert {
pub const DEG_TO_RAD: f64 = std::f64::consts::PI / 180.0;
pub const RAD_TO_DEG: f64 = 180.0 / std::f64::consts::PI;
pub const INCH_TO_METER: f64 = 0.0254;
pub const FOOT_TO_METER: f64 = 0.3048;
pub const YARD_TO_METER: f64 = 0.9144;
pub const MILE_TO_METER: f64 = 1609.344;
pub const POUND_TO_KG: f64 = 0.45359237;
pub const OUNCE_TO_KG: f64 = 0.028349523125;
pub const GALLON_TO_CUBIC_METER: f64 = 0.003785411784;
pub const EV_TO_JOULE: f64 = 1.602176634e-19;
pub const CALORIE_TO_JOULE: f64 = 4.184;
pub const ATM_TO_PASCAL: f64 = 101325.0;
}
pub mod prefix {
pub const YOTTA: f64 = 1.0e24;
pub const ZETTA: f64 = 1.0e21;
pub const EXA: f64 = 1.0e18;
pub const PETA: f64 = 1.0e15;
pub const TERA: f64 = 1.0e12;
pub const GIGA: f64 = 1.0e9;
pub const MEGA: f64 = 1.0e6;
pub const KILO: f64 = 1.0e3;
pub const HECTO: f64 = 1.0e2;
pub const DECA: f64 = 1.0e1;
pub const DECI: f64 = 1.0e-1;
pub const CENTI: f64 = 1.0e-2;
pub const MILLI: f64 = 1.0e-3;
pub const MICRO: f64 = 1.0e-6;
pub const NANO: f64 = 1.0e-9;
pub const PICO: f64 = 1.0e-12;
pub const FEMTO: f64 = 1.0e-15;
pub const ATTO: f64 = 1.0e-18;
pub const ZEPTO: f64 = 1.0e-21;
pub const YOCTO: f64 = 1.0e-24;
}
pub use math::*;
pub use physical::*;
pub use astronomical::*;
pub use convert::*;
pub use prefix::*;