Singular https://www.singular.uni-kl.de/forum/ |
|
Counting lattice points in the Newton polytope https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2135 |
Page 1 of 1 |
Author: | Dmitry [ Tue Sep 18, 2012 8:54 pm ] |
Post subject: | Counting lattice points in the Newton polytope |
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? |
Author: | hannes [ Thu Sep 20, 2012 5:41 pm ] |
Post subject: | Re: Counting lattice points in the Newton polytope |
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 |
Author: | Dmitry [ Sat Sep 22, 2012 8:33 pm ] |
Post subject: | Re: Counting lattice points in the Newton polytope |
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...... |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |