Macaulay2 » Documentation
Packages » Macaulay2Doc > rings > monoid > monoid(...,Weights=>...)
next | previous | forward | backward | up | index | toc

monoid(...,Weights=>...) -- specify weights of the variables

Synopsis

Description

This option specifies the weights of the variables in the monoid. The orderings by these weight vectors is prepended to the list of orderings provided by the monoid(...,MonomialOrder=>...) option. The value must be a list integers when the degree length is one, or a list of lists of integers otherwise.

i1 : R = QQ[x,y]

o1 = R

o1 : PolynomialRing
i2 : leadTerm matrix {{x+y, x^2+y}}

o2 = | x x2 |

             1      2
o2 : Matrix R  <-- R
i3 : R = QQ[x,y, Weights => {1,2}]

o3 = R

o3 : PolynomialRing
i4 : leadTerm matrix {{x+y, x^2+y}}

o4 = | y x2 |

             1      2
o4 : Matrix R  <-- R
i5 : R = QQ[x,y, Weights => {1,3}]

o5 = R

o5 : PolynomialRing
i6 : leadTerm matrix {{x+y, x^2+y}}

o6 = | y y |

             1      2
o6 : Matrix R  <-- R

This option may also be used when creating a new ring from an existing ring, creating a tensor product ring, or symmetric algebra.

Further information

See also

Functions with optional argument named Weights :