#![allow(non_upper_case_globals)]
pub const h: f64 = 6.62607015e-34;
pub const hbar: f64 = h / (2.0 * std::f64::consts::PI);
pub const m_e: f64 = 9.1093837139e-31;
pub const e: f64 = 1.602176634e-19;
pub const KTOE: f64 = 1.0e20 * hbar * hbar / (2.0 * m_e * e);
pub const ETOK: f64 = 1.0 / KTOE;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn conversion_matches_codata_2022_scipy_reference() {
assert!((KTOE - 3.809982110968585).abs() < 1e-15);
assert!((ETOK - 0.26246842396479836).abs() < 1e-16);
}
}