[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 548f9ab 06/23: Document known shortcomings of
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 548f9ab 06/23: Document known shortcomings of a unit-testing helper |
Date: |
Tue, 27 Jul 2021 21:59:51 -0400 (EDT) |
branch: master
commit 548f9ab9f465bf625d1b9b41b1f3f18a68fe7d94
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Document known shortcomings of a unit-testing helper
---
zero_test.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/zero_test.cpp b/zero_test.cpp
index 73d7bab..d7ca7fc 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -67,6 +67,15 @@ double max_err(double zeta, double tol)
/// Yet an IEEE 754 binary64 entity can have no more than 2^64
/// distinct values; with an appropriate definition of "bisection",
/// about 64 steps should suffice.
+///
+/// Known defects:
+/// - std::fabs(DBL_MAX - -DBL_MAX) overflows.
+/// - The denominator can be zero when ζ = 0, because the
+/// implementation allows 'tol' to be zero as a shorthand
+/// for the hardware minimum. (Specifying DBL_TRUE_MIN would
+/// entail a likely speed penalty even on platforms that support
+/// denormals, so this shorthand isn't merely a convenience).
+/// Such defects in a unit-testing TU needn't be fixed.
int max_n_iter_bolzano(double a, double b, double tol, double zeta)
{
- [lmi-commits] [lmi] master c9c50dc 07/23: Add a specialized midpoint function for root finding, (continued)
- [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, 2021/07/27
- [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 <=
- [lmi-commits] [lmi] master 19a4a3a 03/23: For now at least, trace solves in regression test, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 04c58eb 09/23: Count iterations and evaluations separately, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master bbf2517 10/23: Use signum() where a signum function is wanted, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master e08be34 12/23: Improve a unit test, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 02dde17 13/23: Avoid catastrophic cancellation, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master d2dcbf8 15/23: Reduce complexity, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master e93ca8f 17/23: Demonstration, for immediate reversion, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 4500338 22/23: Simplify, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 2ad4944 20/23: Record some more observations--no files changed, Greg Chicares, 2021/07/27
- [lmi-commits] [lmi] master 028b454 23/23: Find any root with only 64 function evaluations, Greg Chicares, 2021/07/27