forward_diff: Forward finite difference approximation of order d

View source: R/RcppExports.R

forward_diffR Documentation

Forward finite difference approximation of order d

Description

Forward finite difference approximation of order d

Usage

forward_diff(f, h, d)

Arguments

f

Numeric vector containing function values.

h

Step size (default = 1.0).

d

Order of the derivative (integer >= 1).

Value

Numeric vector of forward differences of order d (length n, last d elements = NA). #@examples #f <- c(0, 1, 4, 9, 16) #forward_diff(f = f, h = 1, d = 2)


fdaSP documentation built on April 28, 2026, 1:07 a.m.