powered by
polyval(coef, z)
length(z)
z
poly
roots
polyval(c(1,0,-2), 1:3) # s^2 - 2
Run the code above in your browser using DataLab