poly: Evaluate a polynomial in reverse order

eval_polyR Documentation

Evaluate a polynomial in reverse order

Description

Evaluate the polynomial using the Horner scheme

Usage

eval_poly(x, b, deriv = FALSE)

Arguments

x

numeric vector of values to evaluate a polynomial at

b

numeric vector of coefficients (highest degree first, degree 0 last)

deriv

logical. Should the value of the derivative be returned instead?. Default is FALSE.

Value

quantiles, QDF, DQF, random samples or probabilities of GLD (CSW parameterization)

Examples

eval_poly(1:3, c(0.1, 0.2, 0.6, 1.23, 4.43))

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.