num.deriv: Numerical Derivatives

View source: R/num.deriv.R

num.derivR Documentation

Numerical Derivatives

Description

Calculate numerical derivatives of a univariate function.

Usage

num.deriv(f, x, delta = 1e-04, align = 0, ...)

Arguments

f

a function.

x

a vector of values to pass to f.

delta

the width of each x window, in which the slope at x will be evaluated.

align

alignment of x window (-1: left, 0: center, 1: right).

...

passed to f.

Value

Vector of numerical derivatives.

Note

Simple finite-difference approximation: \Delta f / \Delta x.


arni-magnusson/arni documentation built on Nov. 3, 2023, 7:35 p.m.