lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/eraseme_error 273f15b 8/9: Restore un-breakage


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/eraseme_error 273f15b 8/9: Restore un-breakage
Date: Thu, 8 Jul 2021 16:26:48 -0400 (EDT)

branch: odd/eraseme_error
commit 273f15bc25d4d32d70993deab6163965918bfdd4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Restore un-breakage
---
 financial.hpp | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/financial.hpp b/financial.hpp
index 2525ff2..9e32f32 100644
--- a/financial.hpp
+++ b/financial.hpp
@@ -57,7 +57,6 @@ long double fv
     ,long double i
     )
 {
-#if 0
     if(first == last)
         {
         return 0.0L;
@@ -70,19 +69,6 @@ long double fv
         z *= u;
         }
     return z;
-#endif // 0
-    if(first == last)
-        {
-        return 0.0L;
-        }
-    long double const v = 1.0L / (1.0L + i);
-    long double vn = 1.0L;
-    long double z = 0.0L;
-    for(InputIterator j = first; j != last; ++j)
-        {
-        z += *j * (vn *= v);
-        }
-    return z / (vn * v);
 }
 
 template<typename InputIterator>
@@ -109,7 +95,7 @@ class irr_helper
     long double operator()()
         {
     std::ofstream ofs_trace;
-    ofs_trace.open("trace_irr.txt", ios_out_app_binary());
+////ofs_trace.open("trace_irr.txt", ios_out_app_binary());
     std::ostream os_trace(ofs_trace.rdbuf());
         root_type const z = decimal_root
             (*this



reply via email to

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