Learn R Programming

ecd (version 0.6.4)

ecd.uniroot: Uniroot wrapper

Description

This function wraps ordinary uniroot and unirootR (from Rmpfr) to the same interface.

Usage

ecd.uniroot(f, lower, upper, use.mpfr = FALSE, tol = .Machine$double.eps^0.25, maxiter = 1000)

Arguments

f
the function for which the root is sought.
lower, upper
the lower and upper end points of the interval to be searched.
use.mpfr
logical, to use MPFR (default), or else uniroot in stats.
tol
the desired accuracy (convergence tolerance).
maxiter
the maximum number of iterations.

Value

uniroot result