From 207d733ae23132c8157acfb305e186b626b08fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Wed, 2 Oct 2024 21:55:37 +0200 Subject: [PATCH] Stricter epsilon in extreme values demo --- README.md | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f665269..3b379e5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/lib.rs b/src/lib.rs index 988d940..fa7a014 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); ``` "# )]