lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master c0c15a5 3/5: Merge duplicative defect markers


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c0c15a5 3/5: Merge duplicative defect markers [383]
Date: Mon, 28 Aug 2017 09:27:45 -0400 (EDT)

branch: master
commit c0c15a51c6f66012d005540c7ab9b9fc6f68c890
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Merge duplicative defect markers [383]
---
 round_to_test.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/round_to_test.cpp b/round_to_test.cpp
index e62fe1f..041c665 100644
--- a/round_to_test.cpp
+++ b/round_to_test.cpp
@@ -230,11 +230,12 @@ bool test_one_case
         // term epsilon**2 vanish.
         //
         // TODO ?? Shouldn't one epsilon here be epsilon of
-        // max-precision-real type?
+        // max-precision-real type, as shown in a comment?
+        // But consider using std::nextafter instead of (1+epsilon).
         tolerance =
                (1.0 + std::numeric_limits<RealType>::epsilon())
              * (1.0 + std::numeric_limits<RealType>::epsilon())
-// TODO ??        * (1.0 + std::numeric_limits<max_prec_real>::epsilon())
+//           * (1.0 + std::numeric_limits<max_prec_real>::epsilon())
              - 1.0
              ;
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]