# NOT RUN {
mp("-x^5 - 3 y^2 + x y^3 - 1")
(p <- mp("2 x^5 - 3 y^2 + x y^3"))
print(p) # same
print(p, silent = TRUE)
s <- print(p, silent = TRUE)
s
print(p, order = "lex") # -> 2 x^5 + x y^3 - 3 y^2
print(p, order = "lex", varorder = c("y","x")) # -> y^3 x - 3 y^2 + 2 x^5
print(p, varorder = c("y","x")) # -> y^3 x - 3 y^2 + 2 x^5
# this is mostly used internally
print(p, stars = TRUE)
print(p, stars = TRUE, times_pad = 0L)
print(p, stars = TRUE, times_pad = 0L, plus_pad = 1L)
print(p, stars = TRUE, times_pad = 0L, plus_pad = 0L)
print(p, plus_pad = 1L)
# }
Run the code above in your browser using DataLab