Changeset 1e1ec4 in git for Singular/LIB/oldpolymake.lib
- Timestamp:
- Jan 4, 2013, 5:54:18 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 42ea852aa2e1e683808b1ac3305dda96677af761
- Parents:
- 8f296a6216092a84f1ebb509dbcda5fe428004f7
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-01-04 17:54:18+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-01-15 20:41:56+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/oldpolymake.lib
r8f296a r1e1ec4 3 3 category="Tropical Geometry"; 4 4 info=" 5 LIBRARY: polymake.libComputations with polytopes and fans,6 interface to polymake and TOPCOM5 LIBRARY: oldpolymake.lib Computations with polytopes and fans, 6 interface to polymake and TOPCOM 7 7 AUTHOR: Thomas Markwig, email: keilen@mathematik.uni-kl.de 8 8 … … 32 32 independent of both, polymake and topcom. 33 33 34 PROCEDURES USING POLYMAKE:34 PROCEDURES: 35 35 polymakePolytope() computes the vertices of a polytope using polymake 36 newtonPolytope () computes the Newton polytope of a polynomial36 newtonPolytopeP() computes the Newton polytope of a polynomial 37 37 newtonPolytopeLP() computes the lattice points of the Newton polytope 38 38 normalFan() computes the normal fan of a polytope … … 41 41 polymakeToIntmat() transforms polymake output into an integer matrix 42 42 43 PROCEDURES USING TOPCOM:44 43 triangulations() computes all triangulations of a marked polytope 45 44 secondaryPolytope() computes the secondary polytope of a marked polytope 46 45 47 PROCEDURES USING POLYMAKE AND TOPCOM:48 46 secondaryFan() computes the secondary fan of a marked polytope 49 47 50 PROCEDURES CONCERNED WITH PLANAR POLYGONS:51 48 cycleLength() computes the cycleLength of cycle 52 49 splitPolygon() splits a marked polygon into vertices, facets, interior points … … 59 56 ellipticNFDB() displays the 16 normal forms of elliptic polygons 60 57 61 AUXILARY PROCEDURES:62 58 polymakeKeepTmpFiles() determines if the files created in /tmp should be kept 63 59 … … 94 90 ///////////////////////////////////////////////////////////////////////////// 95 91 96 proc polymakePolytope (intmat polytop e,list #)92 proc polymakePolytope (intmat polytop,list #) 97 93 "USAGE: polymakePolytope(polytope[,#]); polytope list, # string 98 94 ASSUME: each row of polytope gives the coordinates of a lattice point of a … … 158 154 } 159 155 // create the lattice point list for polymake 160 sp=sp+intmatToPolymake(polytop e,"points");156 sp=sp+intmatToPolymake(polytop,"points"); 161 157 // initialise dateiname.polymake and compute the vertices 162 158 write(":w /tmp/"+dateiname+".polymake",sp); … … 222 218 else 223 219 { 224 intmat neq[1][ncols(polytop e)+1];220 intmat neq[1][ncols(polytop)+1]; 225 221 } 226 222 // delete the tmp-files, if polymakekeeptmpfiles is not set … … 256 252 ///////////////////////////////////////////////////////////////////////////// 257 253 258 proc newtonPolytope (poly f,list #)259 "USAGE: newtonPolytope (f[,#]); f poly, # string254 proc newtonPolytopeP (poly f,list #) 255 "USAGE: newtonPolytopeP(f[,#]); f poly, # string 260 256 RETURN: list L with four entries 261 257 @* L[1] : an integer matrix whose rows are the coordinates of vertices … … 287 283 which then will be used instead of 'newtonPolytope' in the name of 288 284 the polymake output file 289 EXAMPLE: example newtonPolytope ; shows an example"285 EXAMPLE: example newtonPolytopeP; shows an example" 290 286 { 291 287 int i,j; … … 315 311 poly f=y3+x2+xy+2xz+yz+z2+1; 316 312 // the Newton polytope of f is 317 list np=newtonPolytope (f);313 list np=newtonPolytopeP(f); 318 314 // the vertices of the Newton polytope are: 319 315 np[1]; … … 327 323 f=x2-y3; 328 324 // the Newton polytope of f is 329 np=newtonPolytope (f);325 np=newtonPolytopeP(f); 330 326 // the vertices of the Newton polytope are: 331 327 np[1]; … … 536 532 poly f=y3+x2+xy+2xz+yz+z2+1; 537 533 // the Newton polytope of f is 538 list np=newtonPolytope (f);534 list np=newtonPolytopeP(f); 539 535 // the Groebner fan of f, i.e. the normal fan of the Newton polytope 540 536 list gf=normalFan(np[1],np[4],np[3],1,"x,y,z");
Note: See TracChangeset
for help on using the changeset viewer.