R/internal.R

## =============================================================================
## Perturb     : adds the numerical differencing value to a value
## =============================================================================

# internal function #

perturb <- function (value , pert=1e-8) {
    # A small, positive value, not too small
  pmax(abs(value) * pert,pert)
}

Try the rootSolve package in your browser

Any scripts or data that you put into this service are public.

rootSolve documentation built on Sept. 23, 2021, 3 a.m.