poly: Polynomial given roots

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/poly.R

Description

Coefficients of a polynomial when roots are given or the characteristic polynomial of a matrix.

Usage

1
poly(x)

Arguments

x

a vector or matrix. For a vector, it specifies the roots of the polynomial. For a matrix, the characteristic polynomial is found.

Value

An array of the coefficients of the polynomial in order from highest to lowest polynomial power.

Author(s)

Original Octave version by Kurt Hornik. Conversion to R by Tom Short.

References

Octave Forge https://octave.sourceforge.io/

See Also

polyval, roots, conv

Examples

1
2
3
poly(c(1, -1))
poly(roots(1:3))
poly(matrix(1:9, 3, 3))

signal documentation built on May 25, 2021, 9:06 a.m.

Related to poly in signal...