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

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.

Author(s)

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

References

Octave Forge http://octave.sf.net

See Also

Examples

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

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.