This function wraps ordinary uniroot and unirootR (from Rmpfr) to the same interface.
ecd.uniroot(
f,
lower,
upper,
use.mpfr = FALSE,
tol = .Machine$double.eps^0.25,
maxiter = 100
)
the function for which the root is sought.
the lower and upper end points of the interval to be searched.
logical, to use MPFR (default), or else uniroot in stats.
the desired accuracy (convergence tolerance).
the maximum number of iterations.
uniroot result