ecd.uniroot: Uniroot wrapper

ecd.unirootR Documentation

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 = 100
)

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

Author(s)

Stephen H. Lihn


ecd documentation built on May 10, 2022, 1:07 a.m.