Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Counting lattice points in the Newton polytope
PostPosted: Tue Sep 18, 2012 8:54 pm 

Joined: Mon Jun 29, 2009 1:51 pm
Posts: 20
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Counting lattice points in the Newton polytope
PostPosted: Thu Sep 20, 2012 5:41 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Counting lattice points in the Newton polytope
PostPosted: Sat Sep 22, 2012 8:33 pm 

Joined: Mon Jun 29, 2009 1:51 pm
Posts: 20
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......


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:02 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group