Convert characters of the form "p1 = p2" (or similar) to an mpoly object representing p1 - p2.

eq_mp(string, ...)

Arguments

string

a character string containing a polynomial, see examples

...

arguments to pass to mpoly()

Value

An object of class mpoly or mpolyList.

See also

Examples

eq_mp(c("y = x", "y == (x + 2)"))
#> y - x #> y - x - 2