Skip to content

Commit

Permalink
Stricter epsilon in extreme values demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 2, 2024
1 parent fdb2d4d commit 207d733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ 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);
assert_relative_eq!(big, 703.2270331047702, max_relative = 4e-16);
assert_relative_eq!(tiny, -715.7695669234213, max_relative = 4e-16);
```

## License
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ 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);
assert_relative_eq!(big, 703.2270331047702, max_relative = 4e-16);
assert_relative_eq!(tiny, -715.7695669234213, max_relative = 4e-16);
```
"#
)]
Expand Down

0 comments on commit 207d733

Please sign in to comment.