Learn R Programming

carts (version 0.1.0)

bisection: Root finding by bisection

Description

Root finding by bisection

Usage

bisection(f, interval, niter = 6, tol = 1e-12, verbose = TRUE, ...)

Value

numeric specifying the root

Arguments

f

function to find root of (monotonic)

interval

a vector containing the end-points of the interval to be searched for the root

niter

number of iterations

tol

stopping criterion (absolute difference in function evaluated at end points of current interval)

verbose

if TRUE additional messages are printed throughout the optimization

...

additional arguments passed to f