In NSD, we have
a ¬ – 1
b ¬ a + 1
fb ¬ Horners ( coef, deg, b )


a ¬ a + 1
fa ¬ fb
b ¬ a + 1
fb ¬ Horners ( coef, deg, b )

while ( fa * fb > 0 ) 


In C++, we have
double a, b, fa, fb ;
a = – 1 ;
b = a + 1 ;
fb = Horners ( coef, deg, b ) ;
// function call to Horner's Method to evaluation f(b)
do
^ ^ {
^ ^ ^ ^ a = a + 1 ;
^ ^ ^ ^ fa = fb ;
^ ^ ^ ^ b = a + 1 ;
^ ^ ^ ^ fb = Horners ( coef, deg, b ) ;
// function call to Horner's Method to evaluate f(b)
^ ^ }
while ( fa * fb > 0 ) ;

