Skip to content

Commit

Permalink
Correct test on 32 bit impl. Add test to 64 bit impl
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 5, 2024
1 parent 905647c commit e805025
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl LambertW for f32 {
/// # use approx::assert_abs_diff_eq;
/// use lambert_w::LambertW;
///
/// assert_abs_diff_eq!((-1e-30).lambert_wm1(), -73.373110313822977);
/// assert_abs_diff_eq!((-1e-30).lambert_wm1(), -73.37311, epsilon = 1e-6);
/// ```
#[inline]
fn lambert_wm1(self) -> Self::Output {
Expand Down Expand Up @@ -447,6 +447,15 @@ impl LambertW for f64 {
/// The secondary branch of the Lambert W function evaluated to 50 bits of accuracy.
///
/// Delegates to the [`lambert_wm1`] function.
///
/// # Example
///
/// ```
/// # use approx::assert_abs_diff_eq;
/// use lambert_w::LambertW;
///
/// assert_abs_diff_eq!((-1e-30).lambert_wm1(), -73.37311031382298);
/// ```
#[inline]
fn lambert_wm1(self) -> Self::Output {
lambert_wm1(self)
Expand Down

0 comments on commit e805025

Please sign in to comment.