Skip to content

Commit

Permalink
Add comments that describe how the constants were rounded.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Sep 2, 2024
1 parent 8e3e8dd commit 9947a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,17 @@ mod swm1f;
/// The negative inverse of e (-1/e).
///
/// This is the smallest input value for which the Lambert W functions in this crate return a value.
// Rounded from -0.367_879_441_171_442_322
pub const NEG_INV_E: f64 = -0.367_879_441_171_442_32;

/// 1/sqrt(e)
// Rounded from 0.606_530_659_712_633_423
const INV_SQRT_E: f64 = 0.606_530_659_712_633_4;

/// The Omega constant (Ω).
///
/// Fulfills the equation Ωe^Ω = 1.
// Rounded from 0.567_143_290_409_783_87 to the closest `f64` value.
pub const OMEGA: f64 = 0.567_143_290_409_783_8;

#[cfg(feature = "24bits")]
Expand Down

0 comments on commit 9947a6e

Please sign in to comment.