lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/brent e83e0c6 04/11: Suppress suppression of sec


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/brent e83e0c6 04/11: Suppress suppression of secant technique
Date: Tue, 22 Jun 2021 16:54:05 -0400 (EDT)

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

    Suppress suppression of secant technique
    
    It's generally a poor idea.
---
 zero.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/zero.hpp b/zero.hpp
index 1df6d75..f31d624 100644
--- a/zero.hpp
+++ b/zero.hpp
@@ -446,11 +446,13 @@ os_trace << " chandrupatla..." << std::endl;
                 {
 //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
                     {
                     technique = interpolate_bisection1;
                     d = e = m;
                     }
+#endif // 0 // for demonstration only--not a good general idea
                 if(interpolate_inverse_quadratic == technique && !cond_c)
                     {
 #if 1
@@ -617,11 +619,13 @@ int j = 0;
                     {
                     d = p / q;
                     }
+#if 0 // for demonstration only--not a good general idea
                 if(interpolate_linear == technique) // Suppress secant 
technique
                     {
                     technique = interpolate_bisection1;
                     d = e = m;
                     }
+#endif // 0 // for demonstration only--not a good general idea
                 }
             else
                 {



reply via email to

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