|
D.13.2.3 newtonPolytopeLP
Procedure from library polymake.lib (see polymake_lib).
- Usage:
- newtonPolytopeLP(f); f poly
- Return:
- list, the exponent vectors of the monomials occuring in f,
i.e. the lattice points of the Newton polytope of f
Example:
| 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
|
|