Usage: |
min = nmbrentder(func {,a,b,c,xtol})
|
Input: |
| func | name of function (string) whose minimum is to be
found. The function should have just one scalar
parameter x. As a result, the function should return a
scalar.
|
| fder | first derivative of func; there are several possible
formats:
1. name of function (string) describing the function computing
the first derivative of func (its output is scalar)
2. empty string; in this case the derivative will be
computed automatically using the quantlet nmgraddiff
with a default step h
3. scalar h; the derivative will be computed
automatically using the quantlet nmgraddiff with
the given step h
|
| a,b,c | optional scalars;
a bracketing triplet for minimum of func, i.e., a < b < c
and fb < fa, fb < fc;
default values: results of nmbracket(func)
|
| xtol | optional scalar; tolerance - fractional precision of the minimum;
default xtol = 1e-8
|
Output: |
| min.xmin | minimum of func (isolated to a fractional precision of xtol) |
| min.fmin | minimum function value f(xmin) |