Solve a univariate inequality
Source:R/solvers-solveset-inequality.R
solve_univariate_inequality.Rdsolve_univariate_inequality(expr, x) solves a real inequality in one
variable, as SymPy's function of the same name: the critical points come
from solvify(), the singularities and the discontinuities of the domain,
and a test point decides each interval between them.
Examples
x <- Symbol("x")
solve_univariate_inequality(x^2 > 4, x)
#> ((-oo < x) & (x < -2)) | ((2 < x) & (x < oo))
solve_univariate_inequality((x - 1) / (x + 2) <= 0, x, relational = FALSE)
#> Interval.Lopen(-2, 1)