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 29, 2017, 9:42 p.m.