Combine a series of mpoly objects into a mpolyList.

mpolyList(...)

Arguments

...

a series of mpoly objects.

Value

An object of class mpolyList.

Examples

( p1 <- mp("t^4 - x") )
#> t^4 - x
( p2 <- mp("t^3 - y") )
#> t^3 - y
( p3 <- mp("t^2 - z") )
#> t^2 - z
( ms <- mpolyList(p1, p2, p3) )
#> t^4 - x #> t^3 - y #> t^2 - z
#> [1] TRUE
mpolyList(mp("x + 1"))
#> x + 1
p <- mp("x + 1") mpolyList(p)
#> x + 1
ps <- mp(c("x + 1", "y + 2")) is.mpolyList(ps)
#> [1] TRUE
f <- function(){ a <- mp("1") mpolyList(a) } f()
#> 1