fd_central: Center difference for numeric vectors

Description Usage Arguments Details Value

View source: R/fd_central.R

Description

Center difference approximationt to first derivative for a numeric vector representing a function evaluated on a grid.

Usage

1
fd_central(y, h)

Arguments

y

numeric vector to differentiate

h

step-size

Details

Details are well known. At each point we take the next and previous, their difference and divided by the step-size.

Value

vector


shill1729/FeynmanKacSolver documentation built on May 19, 2020, 8:23 p.m.