signal (version 0.7-6)

poly: Polynomial given roots

Description

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

Usage

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.

References

Octave Forge http://octave.sf.net

See Also

polyval, roots, conv

Examples

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