Usage: |
root = nmregfalsi(fname {,a0,b0,xtol,maxiter})
|
Input: |
| fname | string, name of a function whose root should be
found. The function should have just one scalar
parameter x. As a result, the function should return
a scalar.
|
| a0,b0 | optional scalars, distinct initial points bracketing a root;
if not given, nmbrackout will be used to find a bracket
|
| xtol | optional scalar; tolerance - absolute precision of the minimum;
default xtol = 1e-8
|
| maxiter | optional scalar; maximal number of iterations;
default maxiter = 100
|
Output: |
| root | scalar, root of fname (isolated to a precision +/- xtol) |