[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master eea9469 02/23: Ignore an immaterial i686 devi
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master eea9469 02/23: Ignore an immaterial i686 deviation |
Date: |
Tue, 27 Jul 2021 21:59:50 -0400 (EDT) |
branch: master
commit eea9469e80a80a30c93d696c1cd7230fbc05a7cf
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Ignore an immaterial i686 deviation
---
financial_test.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/financial_test.cpp b/financial_test.cpp
index 0324a57..b7cd882 100644
--- a/financial_test.cpp
+++ b/financial_test.cpp
@@ -187,9 +187,9 @@ int test_main(int, char*[])
std::vector<double> q{p};
q.push_back(-b.back());
// This NPV is -9.777068044058979E-12 in a gnumeric spreadsheet,
- // versus -9.86988e-014 with MinGW-w64 gcc-6.3.0; the 1e-13
- // tolerance is simply the materially_equal() default.
- LMI_TEST(std::fabs(pv(q.begin(), q.end(), results.back())) <= 1e-13);
+ // versus -9.86988e-014 with MinGW-w64 gcc-6.3.0
+ // versus 3.6593e-013 with i686-w64-mingw32 gcc-10.0
+ LMI_TEST(std::fabs(pv(q.begin(), q.end(), results.back())) <= 1e-12);
// Trivially, NPV at 0% interest is summation.
LMI_TEST(materially_equal(-4950.0L, pv(q.begin(), q.end(), 0.0)));
- [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 <=
- [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, 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