Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Implement Weight Orders

I am having trouble implementing weight orders in SageMath. Suppose we are given the polynomial ring K[x,y,z], and weight vectors w1=(1,2,3),w2=(4,5,6). For exponent vectors a,b, I would like to implement a term order that decides a>b according to:

  • w1a>w1b
  • w1a=w1b and w2a>w2b
  • w1a=w1b and w2a=w2b and a>LEXb, i.e. in case of two ties > defaults to the standard lexicographic term order.

How can I implement such a term order in SageMath?