c05ayf attempts to obtain an approximation to a simple zero of the function
given an initial interval
such that
.
The same core algorithm is used by
c05azf whose specification should be consulted for details of the method used.
The approximation
to the zero
is determined so that at least one of the following criteria is satisfied:
(i) |
, |
(ii) |
. |
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
The levels of accuracy depend on the values of
eps and
eta. If full machine accuracy is required, they may be set very small, resulting in an exit with
, although this may involve many more iterations than a lesser accuracy. You are recommended to set
and to use
eps to control the accuracy, unless you have considerable knowledge of the size of
for values of
near the zero.
The time taken by
c05ayf depends primarily on the time spent evaluating
f (see
Section 5).
If it is important to determine an interval of relative length less than
containing the zero, or if
f is expensive to evaluate and the number of calls to
f is to be restricted, then use of
c05azf is recommended. Use of
c05azf is also recommended when the structure of the problem to be solved does not permit a simple
f to be written: the reverse communication facilities of
c05azf are more flexible than the direct communication of
f required by
c05ayf.
None.