R/num.deriv.R

Defines functions num.deriv

num.deriv <- function(f, x, epsilon, ...)
{
    (f(x + epsilon, ...) - f(x - epsilon, ...)) / (2 * epsilon)
}

Try the rodd package in your browser

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

rodd documentation built on May 2, 2019, 8:16 a.m.