Skip to content

Commit

Permalink
Add extreme inpuit for the secondary branch: W_-1(-1e-308)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Sep 30, 2024
1 parent ad3f5d0 commit 5234243
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,20 @@ assert_abs_diff_eq!(mln4, -f32::ln(4.0));
"##
)]
//!
//! The implementation can handle massive inputs just as well:
//! The implementation can handle extreme inputs just as well:
//!
#![cfg_attr(
feature = "50bits",
doc = r#"
```
# use approx::assert_relative_eq;
use lambert_w::lambert_w0;
use lambert_w::{lambert_w0, lambert_wm1};
let big = lambert_w0(f64::MAX);
let tiny = lambert_wm1(-1e-308);
assert_relative_eq!(big, 703.2270331047702, max_relative = 1e-15);
assert_relative_eq!(tiny, -715.7695669234213, max_relative = 1e-15);
```
"#
)]
Expand Down

0 comments on commit 5234243

Please sign in to comment.