A root finding procedure should stop when one of the following conditions is true:
The handling of these conditions is under user control. The functions below allow the user to test the precision of the current result in several standard ways.
GSL_SUCCESS
if the following
condition is achieved,
when the interval @math{x = [a,b]} does not include the origin. If the interval includes the origin then @math{\min(|a|,|b|)} is replaced by zero (which is the minimum value of @math{|x|} over the interval). This ensures that the relative error is accurately estimated for roots close to the origin.
This condition on the interval also implies that any estimate of the root @math{r} in the interval satisfies the same condition with respect to the true root @math{r^*},
assuming that the true root @math{r^*} is contained within the interval.
This function tests for the convergence of the sequence ..., x0,
x1 with absolute error epsabs and relative error
epsrel. The test returns GSL_SUCCESS
if the following
condition is achieved,
and returns GSL_CONTINUE
otherwise.
GSL_SUCCESS
if the
following condition is achieved,
and returns GSL_CONTINUE
otherwise. This criterion is suitable
for situations where the the precise location of the root, @math{x}, is
unimportant provided a value can be found where the residual,
@math{|f(x)|}, is small enough.