Macaulay2 » Documentation
Packages » OIGroebnerBases » degree(VectorInWidth)
next | previous | forward | backward | up | index | toc

# degree(VectorInWidth) -- get the degree of an element of a free OI-module

- Function: degree
- Usage:
    `degree f`
- Inputs:
  - f, an instance of the type VectorInWidth,
- Outputs:
  - an integer,

## Description

Returns the degree of the lead term of an element of a free OI-module.

    i1 : P = makePolynomialOIAlgebra(2, x, QQ);

    i2 : F = makeFreeOIModule(e, {1,2}, P);

    i3 : installGeneratorsInWidth(F, 3);

    i4 : f = x_(1,2)*x_(1,1)*e_(3,{2},1)+x_(2,2)*x_(2,1)*e_(3,{1,3},2)

    o4 = x   x   e        + x   x   e
          1,2 1,1 3,{2},1    2,2 2,1 3,{1, 3},2

                                                 6
    o4 : (QQ[x   , x   , x   , x   , x   , x   ])  in width 3
              2,3   2,2   2,1   1,3   1,2   1,1

    i5 : degree f

    o5 = 2

## Ways to use this method:

- degree(VectorInWidth) -- get the degree of an element of a free OI-module

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/OIGroebnerBases.m2:2156:0.