When I define the ring to work on in Macaulay2, I would like to change the order of the variables for building the Grobner basis of ideals with respect to this new order. For instance, if set
R = QQ [x_1..x_5], then how may I define the lexicographic monomial order induced by x_3<x_2<x_1<x_5<x_4?
2026-03-25 09:32:29.1774431149
Monomial order in Macaulay2
138 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
The default ordering of the variables is whatever order you use to write them when creating the ring.
For instance, to get the order you want, you should use
Indeed, on my version of Macaualy2 we can see the desired behavior:
I'm not sure if there's a way to do this automatically, though, and a quick look through the documentation makes it look like there might not be a way to do that.
I hope this helps ^_^