Macaulay2 » Documentation
Packages » TropicalToric :: degCycle
next | previous | forward | backward | up | index | toc

degCycle -- Compute the degree of a cycle of maximal codimension

Synopsis

Description

This function computes the sum of the coefficients of a cycle of maximal codimension

i1 : rayList={{1,0},{1,1},{0,1},{-1,-1}};
i2 : coneList={{0,1},{1,2},{2,3},{3,0}};
i3 : X = normalToricVariety(rayList,coneList);
i4 : C = X_{0,1} + X_{1,2} - 3*X_{2,3}

o4 = - 3*X       + X       + X
          {2, 3}    {0, 1}    {1, 2}

o4 : ToricCycle on X
i5 : degCycle(C)

o5 = -1

o5 : QQ

Ways to use degCycle :

For the programmer

The object degCycle is a method function.