# NOT RUN {
(p <- mp("x y^2 + x (x+1) (x+2) x z + 3 x^10"))
p[2]
p[-2]
p[2:3]
LT(p)
LC(p)
LM(p)
multideg(p)
totaldeg(p)
monomials(p)
exponents(p)
exponents(p, reduce = TRUE)
lapply(exponents(p), is.integer)
homogeneous_components(p)
# }
Run the code above in your browser using DataLab