Function to be analyzed
Left bound of initial range of f known to contain the root.
Right bound of initial range of f known to contain the root.
Value of f(ax).
Value of f(bx). fax and fbx should have opposite signs. (f(ax) and f(bx) are commonly known in advance.)
Defines an early termination condition. Receives the current upper and lower bounds on the root. The delegate must return true when these bounds are acceptable. If this function always returns false, full machine precision will be achieved.
A tuple consisting of two ranges. The first two elements are the range (in x) of the root, while the second pair of elements are the corresponding function values at those points. If an exact root was found, both of the first two elements will contain the root, and the second pair of elements will be 0.
Find root of a real function f(x) by bracketing, allowing the termination condition to be specified.