This function is used to set the intrinsic order of a multivariate polynomial. It is used for both the in-term variables and the terms.
# S3 method for mpoly reorder(x, varorder = vars(x), order, ...)
x | an object of class mpoly |
---|---|
varorder | the order of the variables |
order | a total order used to order the terms, |
... | additional arguments |
An object of class mpoly.
list <- list( c(x = 1, y = 2, z = 1, coef = 1), c(x = 2, y = 0, z = 2, coef = 1), c(x = 0, y = 0, z = 2, coef = 1), c(x = 3, y = 0, z = 0, coef = 1) ) (p <- mpoly(list)) # -> x y^2 z + x^2 z^2 + z^2 + x^3#> x y^2 z + x^2 z^2 + z^2 + x^3#> x^3 + x^2 z^2 + x y^2 z + z^2#> x^3 + x^2 z^2 + x y^2 z + z^2#> x^2 z^2 + x y^2 z + x^3 + z^2#> x y^2 z + x^2 z^2 + x^3 + z^2#> x + 1#> y + x#> 2 y x z^2 + y x + y#>#> x^2 + x y + y