lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/brent abbcf94 06/11: Remove a few stray commente


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/brent abbcf94 06/11: Remove a few stray commented-out lines
Date: Tue, 22 Jun 2021 16:54:05 -0400 (EDT)

branch: odd/brent
commit abbcf9465b98c064e4eba7bfebcae1fad1a25f7e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove a few stray commented-out lines
---
 zero.hpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/zero.hpp b/zero.hpp
index a89ba57..36eea3e 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -403,19 +403,11 @@ root_type decimal_root
 // no...try again
             double xi  = ( b -  c) / ( a -  c);
             double phi = (fb - fc) / (fa - fc);
-#if 0
-            cond_c =
-                   (phi * phi) < xi
-                && ((1.0 - phi) * (1.0 - phi)) < (1.0 - xi)
-//              && interpolate_inverse_quadratic == technique
-                ;
-#endif // 0
             // Chandrupatla acceptance criterion
             cond_c =
                    (phi * phi) < xi
                 && ((1.0 - phi) * (1.0 - phi)) < (1.0 - xi)
                 ;
-//os_trace << phi << ' ' << xi << std::endl;
 
             cond_b =  p < 1.5 * m * q - std::fabs(tol * q);
             cond_0 =  p < std::fabs(0.5 * s * q);
@@ -428,7 +420,6 @@ root_type decimal_root
 #endif // 1
                 )
                 {
-//std::cout << cond_c << cond_b << cond_0 << std::endl;
                 d = p / q;
 #if 0 // for demonstration only--not a good general idea
                 if(interpolate_linear == technique) // Suppress secant 
technique



reply via email to

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