poly
Polynomial with specified roots or characteristic polynomial.
Syntax
p = poly(r)
p = poly(A)
Input argument
r - vector: polynomial roots
A - matrix: input matrix
Output argument
p - row vector: polynomial coefficients
Description
If A is a square matrix, p = poly(A) computes an n+1 element row vector. This result is composed the coefficients of the characteristic polynomial.
If r is a vector, p = poly(r) computes a row vector. This result is composed the coefficients of the polynomial roots of which are the elements of r.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated