Skip to content

Commit

Permalink
Add comments explaining large epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 5, 2024
1 parent b6b3307 commit dbfd9bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ impl LambertW for f32 {
/// # use approx::assert_abs_diff_eq;
/// use lambert_w::LambertW;
///
// The large epsilon is set to let this test pass when the `estrin` feature is enabled,
// since the CI may not have fused multiply-add instructions.
/// assert_abs_diff_eq!((-1e-30).lambert_wm1(), -73.37311, epsilon = 1e-4);
/// ```
#[inline]
Expand Down Expand Up @@ -453,7 +455,8 @@ impl LambertW for f64 {
/// ```
/// # use approx::assert_abs_diff_eq;
/// use lambert_w::LambertW;
///
// The large epsilon is set to let this test pass when the `estrin` feature is enabled,
// since the CI may not have fused multiply-add instructions.
/// assert_abs_diff_eq!((-1e-30).lambert_wm1(), -73.37311031382298, epsilon = 1e-13);
/// ```
#[inline]
Expand Down

0 comments on commit dbfd9bc

Please sign in to comment.