Polyroot

Parent Previous Next

Polyroot


Polynomial roots finding


Syntax


polyroot(p)

p is a row/column vector

The input argument p is a vector of length n+1 whose elements are the coefficients in descending powers of the polynomial to be evaluated.

polyroot(p) return a vector which contains the roots of p(x)


Example


Input

Output

polyroot([1.0,5.6562,5.8854,7.3646,6.135])

polyroot([2,1+i,-1+i,i,1-i,-1-i])


See Also


Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator