Creates a polynomial with roots represented by an input vector or computes the characteristic polynomial of an input matrix.
p = poly(z)
Real or complex array of any dimension. If z is a matrix, z must be square. If z is an array, MathScript first flattens the array before creating a polynomial input.
Coefficients in descending order of power of the polynomial with roots of z. If z is a matrix, p returns the coefficients in descending order of power of the characteristic polynomial of z. p is a real or complex vector.
Z = [1, 2, 3, 4];
P = poly(Z)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices