Read-only forum archive

Counting lattice points in the Newton polytope

Counting lattice points in the Newton polytope

Dmitry · Tue Sep 18, 2012 8:54 pm

1. Is there some standard command to compute the (inner or total) number of lattice points in the Newton polytope of a given polynomial?

2. I tried to list the points as follows:
LIB "oldpolymake.lib";
ring r=0,(x,y,z),dp;
poly f=x^2+y^4+z^4;
list np=newtonPolytope(f);
(according to http://www.singular.uni-kl.de/Manual/3- ... tm#SEC1628)

But this gives the error:
? `newtonPolytope` is not defined
? error occurred in or before STDIN line 11: `list np=newtonPolytope(f);`

Is this a bug?

Re: Counting lattice points in the Newton polytope

hannes · Thu Sep 20, 2012 5:41 pm

No, this is not a bug: you mix a library from version 3-1-5 with a command
from version 3-1-1.
The correct usage depends on your version of Singular:
3-1-1 works with newtonPolytope from the library polymake.lib
3-1-5 (the current version) uses newtopPolytopeP for the library oldpolymake.lib
or newtonPolytop from polymake.so

Re: Counting lattice points in the Newton polytope

Dmitry · Sat Sep 22, 2012 8:33 pm

Sorry, I have Singular3.1.5, trying to run the example http://www.singular.uni-kl.de/Manual/3- ... tm#SEC1868

After
LIB "oldpolymake.lib";
ring r=0,(x,y,z),dp;
matrix M[4][1]=1,x,y,z;
poly f=y3+x2+xy+2xz+yz+z2+1;
list np=newtonPolytopeP(f);
I get:
? 'polymakePolytopeP' is not defined......