Instead of defining a monomial ordering in Macaulay2, I would like to get the vector of degrees of a monomial. For example, if I define
R=QQ[x,y]
p=x^2*y^5
I would like to get, from p, the vector (2,5) giving the corresponding degrees. How can I do this?
Thanks a lot!
You probably want to use a multigrading.
See also the documentation.