|  |  D.13.2.3 newtonPolytopeLP Procedure from librarypolymake.lib(see  polymake_lib).
 
Example:Usage:
newtonPolytopeLP(f); f poly
Return:
list, the exponent vectors of the monomials occurring in f,
i.e. the lattice points of the Newton polytope of f
 |  | LIB "polymake.lib";
==> Welcome to polymake version
==> Copyright (c) 1997-2015
==> Ewgenij Gawrilow, Michael Joswig (TU Darmstadt)
==> http://www.polymake.org
ring r=0,(x,y,z),dp;
poly f=y3+x2+xy+2xz+yz+z2+1;
// the lattice points of the Newton polytope of f are
newtonPolytopeLP(f);
==> [1]:
==>    0,3,0
==> [2]:
==>    2,0,0
==> [3]:
==>    1,1,0
==> [4]:
==>    1,0,1
==> [5]:
==>    0,1,1
==> [6]:
==>    0,0,2
==> [7]:
==>    0,0,0
 | 
 
 |