muller(f, x1, x2, tol = .Machine$double.eps^0.5, kmax = 24)
Arguments
f
function whose root is to be found.
x1, x2
two starting estimates, should bracket the assumed root.
tol
relative tolerance, change in successive iterates.
kmax
maximum number of iterations.
Value
List of root and fval.
Details
Generalizes the secant method by using quadratic interpolation between
three points.
Can be used to find zeros of analytic functions in the complex plane. For
this purpose, a complex sign function has been inside muller.
But think of it, convergence is much slower in this case and kmax
should at least be doubled.
References
Fausett, L. V. (2008). Applied Numerical Analysis Using Matlab.
Second Edition, Pearson Education.