 LIB "polymake.lib";
==> Welcome to polymake version
==> Copyright (c) 19972015
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
// the lattice points of the unit square in the plane
list points=intvec(0,0),intvec(0,1),intvec(1,0),intvec(1,1);
// the secondary polytope of this lattice point configuration is computed
intmat secpoly=secondaryPolytope(points)[1];
==> Evaluating Commandline Options ...
==> ... done.
==> 0
==> 0
list np=polymakePolytope(secpoly);
==> polymake: used package ppl
==> The Parma Polyhedra Library (PPL): A C++ library for convex polyhedra
==> and other numerical abstractions.
==> http://www.cs.unipr.it/ppl/
==>
// the vertices of the secondary polytope are:
np[1];
==> 2,1,1,2,
==> 1,2,2,1
// its dimension is
np[2];
==> 1
// np[3] contains information how the vertices are connected to each other,
// e.g. the first vertex (number 0) is connected to the second one
np[3][1];
==> 2
// the affine hull has the equation
ring r=0,x(1..4),dp;
matrix M[5][1]=1,x(1),x(2),x(3),x(4);
intmat(np[4])*M;
==> _[1,1]=x(3)x(4)+3
==> _[2,1]=x(1)x(4)
==> _[3,1]=x(2)x(3)
