Skip to content

Commit

Permalink
Type the correctly rounded value or the -1/e constant into the source…
Browse files Browse the repository at this point in the history
… code. It results in the same final value, but now the user can see what it's supposed to be if they read the code
  • Loading branch information
JSorngard committed Sep 2, 2024
1 parent 07aed87 commit 8e3e8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ 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.
pub const NEG_INV_E: f64 = -0.367_879_441_171_442_33;
pub const NEG_INV_E: f64 = -0.367_879_441_171_442_32;

/// 1/sqrt(e)
const INV_SQRT_E: f64 = 0.606_530_659_712_633_4;
Expand Down

0 comments on commit 8e3e8dd

Please sign in to comment.