[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f576a4b 11/23: Augment unit test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f576a4b 11/23: Augment unit test |
Date: |
Tue, 27 Jul 2021 21:59:52 -0400 (EDT) |
branch: master
commit f576a4b7e82a0e716bd730d8829d84ce11c3a296
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Augment unit test
Motivation: Interpolations such as these arise when bounds are extremely
large, and can lead to catastrophic cancellation.
---
zero_test.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/zero_test.cpp b/zero_test.cpp
index a13b60e..fd6b326 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -439,6 +439,10 @@ void test_binary64_midpoint()
LMI_TEST(materially_equal(5.59376e-155, binary64_midpoint(0.0, 0.25),
1.0e-5));
+ LMI_TEST(materially_equal(1.09631e-104, binary64_midpoint(0.0, 1.0e100),
1.0e-5));
+ LMI_TEST(materially_equal(1.09631e-104, binary64_midpoint(1.0e100, 0.0),
1.0e-5));
+ LMI_TEST(materially_equal(0.000106605 , binary64_midpoint(0.0, 1.0e300),
1.0e-5));
+
LMI_TEST(materially_equal( 2.65703e-154, binary64_midpoint( 0.0, 6.25),
1.0e-5));
LMI_TEST(materially_equal( 2.65703e-154, binary64_midpoint(-0.0, 6.25),
1.0e-5));
LMI_TEST(materially_equal(-2.65703e-154, binary64_midpoint( 0.0, -6.25),
1.0e-5));
- [lmi-commits] [lmi] master updated (d6bd802 -> 028b454), Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master eea9469 02/23: Ignore an immaterial i686 deviation, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master a041329 08/23: Consider bounds not to bracket a root if value at either is NaN, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master c9c50dc 07/23: Add a specialized midpoint function for root finding, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master f576a4b 11/23: Augment unit test,
Greg Chicares <=
- [lmi-commits] [lmi] master dc63e62 16/23: Cache evaluations for rounded decimal solves, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master cecc91f 21/23: Avoid a unit-test false negative, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 4b26bf8 01/23: Add a parenthetical comment to a unit test, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 86ae65d 18/23: Revert "Demonstration, for immediate reversion", Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master e59df26 14/23: Refactor, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 8f2f355 19/23: Augment unit tests; record some observations, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master a259cb6 05/23: Calculate maximum possible number of iterations, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master d0a65c2 04/23: Demonstrate that Brent's δ can be almost arbitrarily small, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 548f9ab 06/23: Document known shortcomings of a unit-testing helper, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 19a4a3a 03/23: For now at least, trace solves in regression test, Greg Chicares, 2021/07/27