# NOT RUN {
as.polynomial(c(0, 4, 2, -1))
## 'as.polynomial' reduces complex numbers to real numbers if appropriate.
## You can use 'strict = FALSE' to stop this conversion.
as.polynomial(complex(real = c(0, 4, 2, -1)))
as.polynomial(complex(real = c(0, 4, 2, -1)), strict = FALSE)
# }
Run the code above in your browser using DataLab