Top
Back: secondaryFan
Forward: splitPolygon
FastBack: Tropical Geometry
FastForward: tropical_lib
Up: oldpolymake_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.1.11 cycleLength

Procedure from library oldpolymake.lib (see oldpolymake_lib).

Usage:
cycleLength(boundary,interior); list boundary, intvec interior

Assume:
boundary is a list of integer vectors describing a cycle in some convex lattice polygon around the lattice point interior ordered clock wise

Return:
string, the cycle length of the corresponding cycle in the dual tropical curve

Example:
 
LIB "oldpolymake.lib";
// the integer vectors in boundary are lattice points on the boundary
// of a convex lattice polygon in the plane
list boundary=intvec(0,0),intvec(0,1),intvec(0,2),intvec(2,2),
intvec(2,1),intvec(2,0);
// interior is a lattice point in the interior of this lattice polygon
intvec interior=1,1;
// compute the general cycle length of a cycle of the corresponding cycle
// in the dual tropical curve, note that (0,1) and (2,1) do not contribute
cycleLength(boundary,interior);


Top Back: secondaryFan Forward: splitPolygon FastBack: Tropical Geometry FastForward: tropical_lib Up: oldpolymake_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.