solve_unipoly: Solve a univariate mpoly with polyroot

View source: R/solve_unipoly.R

solve_unipolyR Documentation

Solve a univariate mpoly with polyroot

Description

Solve a univariate mpoly with polyroot

Usage

solve_unipoly(mpoly, real_only = FALSE)

Arguments

mpoly

an mpoly

real_only

return only real solutions?

Examples


solve_unipoly(mp("x^2 - 1")) # check x = -1, 1
solve_unipoly(mp("x^2 - 1"), real_only = TRUE)


dkahle/mpoly documentation built on Nov. 21, 2024, 8:27 a.m.