Contents Previous Next Subchapters

Converting A Set Of Roots To A Polynomial
Syntax zero2pol(z)
See Also pol2zero , polval , poly

Description
Returns a column vector p that corresponds to a polynomial p[x] which is zero at each of the elements of z where z is a real, double-precision, or complex column vector; that is
     p[z ] = 0 for i = 1, . . . , n
        i
where n is the length of the vector z. The return value has the same type as z, its length is n+1, and the n+1-th element of the return value is 1.

Example
     z = {-1, +1}
     p = zero2pol(z)
     pol2asc(p)
returns
     -1 + 0 x^1 + 1 x^2