Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

polyval

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

Examples

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

signal

Signal Processing

v0.7-6
GPL-2
Authors
Uwe Ligges [aut, cre] (new maintainer), Tom Short [aut] (port to R), Paul Kienzle [aut] (majority of the original sources), Sarah Schnackenberg [ctb] (various test cases and bug fixes), David Billinghurst [ctb], Hans-Werner Borchers [ctb], Andre Carezia [ctb], Pascal Dupuis [ctb], John W. Eaton [ctb], E. Farhi [ctb], Kai Habel [ctb], Kurt Hornik [ctb], Sebastian Krey [ctb], Bill Lash [ctb], Friedrich Leisch [ctb], Olaf Mersmann [ctb], Paulo Neis [ctb], Jaakko Ruohio [ctb], Julius O. Smith III [ctb], Doug Stewart [ctb], Andreas Weingessel [ctb]
Initial release
2015-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.