powered by
polydef(x)
If x is a vector, polydef(x) is the vector of coefficients of the polynomial whose roots are the elements of x.
x
polyval
roots
polydef(c(1, -1, 1i, -1i)) # Solves x^4 -1 = 0 # Wilkinson's example: roots(polydef(1:20))
Run the code above in your browser using DataLab