SLIDE 19 Introduction Root Isolation Quadratic Interval Refinement (QIR) Analysis of Quadratic Interval Refinement Conclusions and Further Work Bisection Method Quadratic Interval Refinement Algorithm
Pseudo-code Description
Algorithm 1 Quadratic Interval Refinement
Input: (f , I = (c, d), N) Output: (J, Nnew ) // J is the refined interval if N = 2 then return (BISECTION(f , I),4) end if w ← d−c
N
m ← c +
f (c) f (c)−f (d) (d − c)
m′ ← c + round(N
f (c) f (c)−f (d) )w
s ← sgn(f (m′)) if s = 0 then return ([m′, m′], ∞) end if if (s = sgn(f (c)) and sgn(f (m′ + w)) = sgn(f (d))) then return ((m′, m′ + w), N2) end if if (s = sgn(f (d)) and sgn(f (m′ − w)) = sgn(f (c))) then return ((m′ − w, m′), N2) end if return (I, √ N) Nikolaos Arvanitopoulos Quadratic Interval Refinement