R/solve_unipoly.R
solve_unipoly.Rd
Solve a univariate mpoly with polyroot
solve_unipoly(mpoly, real_only = FALSE)
an mpoly
return only real solutions?
solve_unipoly(mp("x^2 - 1")) # check x = -1, 1#> [1] 1+0i -1+0isolve_unipoly(mp("x^2 - 1"), real_only = TRUE)#> [1] 1 -1