Understanding Brent's root finding method

  • Thread starter phantomvommand
  • Start date
1 reply · 3K views · last reply
phantomvommand
Messages
287
Reaction score
39
TL;DR
I am unsure about the conditions for rejecting the secant or IQI method in favour of bisection
Text section listing Brent's method conditions: cond1 bracket check, cond2/cond3 shrinkage tests comparing step sizes after bisection or interpolation, and cond4/cond5 tiny-step guards using threshold delta.


I am unsure about why in the case where bisect_flag == False, we should check b-1 - b-2. Is the objective not to check that we are halving the interval between our best guesses b, so it should be abs(b - b-1), regardless of whether the previous step was a bisection or not?
 
phantomvommand said:
I am unsure about why in the case where bisect_flag == False, we should check b-1 - b-2. Is the objective not to check that we are halving the interval between our best guesses b, so it should be abs(b - b-1), regardless of whether the previous step was a bisection or not?

According to p.50 of Brent's original publication (it is available on archive.org): "practical tests show that this [would slow down] convergence for well-behaved functions by performing unnecessary bisections".

Like many practical algorithms this is a compromise between optimizing performance in the majority of situations whilst avoiding poor performance (or even failure) in pathological cases.

Note that this question probably belongs in the Programming and Computer Science forum. I'll get it moved.
 
Last edited:
  • Like
Likes   Reactions: jim mcnamara, Baluncore and berkeman