Golden Ratio search for a univariate function minimum in a bounded interval.
Usage
golden_ratio(f, a, b, ..., maxiter = 100, tol = .Machine$double.eps^0.5)
Arguments
f
Function or its name as a string.
a, b
endpoints of the interval.
maxiter
maximum number of iterations.
tol
absolute tolerance; default sqrt(eps).
...
Additional arguments to be passed to f.
Value
Return a list with components xmin, fmin,
the function value at the minimum, niter, the number of iterations
done, and the estimated precision estim.prec
Details
`Golden ratio' search for a univariate function minimum in a bounded interval.