Home Online Manual
Top
Back: isSmooth
Forward: isVeryAmple
FastBack: gfanlib_so
FastForward: Release Notes
Up: polymake_so
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.16.2.21 isTerminal

Syntax:
Polymake::isTerminal( polytope p )
Type:
int
Purpose:
1 if p has exactly one interior lattice point and all other lattice points are vertices, 0 otherwise.
Example:
 
  LIB"polymake.lib";
  intmat M[6][4]=1,1,1,2, 1,-1,-1,-2, 1,1,0,0, 1,-1,0,0, 1,0,1,0, 1,0,-1,0;
  polytope p = polytopeViaPoints(M);
  Polymake::isTerminal(p);
  Polymake::isReflexive(p);
  intmat N[6][4]=1,1,1,2, 1,-1,-1,-2, 1,1,1,0, 1,-1,-1,0, 1,-1,1,0, 1,1,-1,0;
  polytope q = polytopeViaPoints(N);
  Polymake::isTerminal(q);
  Polymake::isCanonical(q);