polyval: Evaluate a polynomial

View source: R/filter.R

polyvalR Documentation

Evaluate a polynomial

Description

Evaluate a polynomial at given points.

Usage

polyval(coef, z)

Arguments

coef

coefficients of the polynomial, defined in decreasing power.

z

the points at which to evaluate the polynomial.

Value

An array of length(z), the polynomial evaluated at each element of z.

Author(s)

Tom Short

See Also

poly, roots

Examples

polyval(c(1, 0, -2), 1:3)  # s^2 - 2 

signal documentation built on June 26, 2024, 9:06 a.m.

Related to polyval in signal...