finite_diff: Calculate finite difference of a function

Description Usage Arguments Value

Description

Calculate finite difference of a function

Usage

1
finite_diff(f, x, order, stencil, h = 1)

Arguments

f

a function or a numeric vector

x

position to calculate the finite difference

order

order of derivative

stencil

sampled points relative to x

h

an epsilon

Value

a numeric value, the derivative of f(x)


imlijunda/stencil1d documentation built on May 6, 2019, 12:09 p.m.