Minimum (or maximum) of a function of one variable on an interval, by Brent's golden-section and parabolic
search. Equivalent to R's optimize(). optimum is the location (R's minimum/maximum) and objective the
function there. lower and upper must be finite and lower less than upper, as in R.
Minimum (or maximum) of a function of one variable on an interval, by Brent's golden-section and parabolic search. Equivalent to R's
optimize().optimumis the location (R'sminimum/maximum) andobjectivethe function there.loweranduppermust be finite andlowerless thanupper, as in R.