root1d: Find a single root of a function of one variable within a...

Description Usage Arguments Details Value See Also Examples

View source: R/root1d.R

Description

Find a single root of a function of one variable within a specified interval.

Usage

1
   root1d(f, interval, tol = .Machine$double.eps^0.5, maxiter = 1000, trace=FALSE, ...) 

Arguments

f

A real function of a single variable.

interval

A vector of two real numbers defining the ends of the interval in which to search.

tol

A tolerance for the root. When the interval within which a root exists is smaller than tol, root1d will terminate.

maxiter

A limit on the number of function evaluations permitted in the attempt to find a root.

trace

If TRUE, provided diagnostic output of the process of rootfinding.

...

Extra data needed to compute the function f.

Details

To be added.

Value

The output is a list consisting of return(list(root=b, froot=NA, rtol=wtol, maxit=maxit)) ## Acceptable approx. is found

root

The estimate, b, of the position of the root.

froot

The value of the function at this point, f(b).

rtol

The width of the interval in which the root exists.

fcount

The number of function evaluations used.

See Also

optimize

Examples

1
## Examples are in rootoned-package.Rd


rootoned documentation built on May 21, 2017, 1:28 a.m.
Search within the rootoned package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.