polyderivEvalR: Evaluate the k-th derivative of a polynomial at point z

View source: R/lagpol.R

polyderivEvalRR Documentation

Evaluate the k-th derivative of a polynomial at point z

Description

Evaluate the k-th derivative of a polynomial at point z

Usage

polyderivEvalR(pol, z, k = 0)

Arguments

pol

Numeric vector of polynomial coefficients in ascending order (pol[1] = constant term, pol[2] = coefficient of z, etc.)

z

Numeric value where the polynomial (or its derivative) is evaluated.

k

Integer. Derivative order (0 = original polynomial).

Value

Numeric value of the k-th derivative of P(z).

Examples

pol <- c(1, 2, 3, 4)  # P(z) = 1 + 2z + 3z² + 4z³
polyderivEvalR(pol, 2, 0)  # 49
polyderivEvalR(pol, 2, 1)  # 62

tfarima documentation built on Nov. 5, 2025, 7:43 p.m.