Changeset 1e1ec4 in git for Singular/LIB/oldpolymake.lib


Ignore:
Timestamp:
Jan 4, 2013, 5:54:18 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
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
Message:
Updated LIBs according to master

add: new LIBs from master
fix: updated LIBs due to minpoly/(de)numerator changes
fix: -> $Id$
fix: Fixing wrong rebase of SW on master (LIBs)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/oldpolymake.lib

    r8f296a r1e1ec4  
    33category="Tropical Geometry";
    44info="
    5 LIBRARY:   polymake.lib    Computations with polytopes and fans,
    6                            interface to polymake and TOPCOM
     5LIBRARY:   oldpolymake.lib  Computations with polytopes and fans,
     6                            interface to polymake and TOPCOM
    77AUTHOR:    Thomas Markwig,  email: keilen@mathematik.uni-kl.de
    88
     
    3232     independent of both, polymake and topcom.
    3333
    34 PROCEDURES USING POLYMAKE:
     34PROCEDURES:
    3535  polymakePolytope()   computes the vertices of a polytope using polymake
    36   newtonPolytope()     computes the Newton polytope of a polynomial
     36  newtonPolytopeP()     computes the Newton polytope of a polynomial
    3737  newtonPolytopeLP()   computes the lattice points of the Newton polytope
    3838  normalFan()          computes the normal fan of a polytope
     
    4141  polymakeToIntmat()   transforms polymake output into an integer matrix
    4242
    43 PROCEDURES USING TOPCOM:
    4443  triangulations()     computes all triangulations of a marked polytope
    4544  secondaryPolytope()  computes the secondary polytope of a marked polytope
    4645
    47 PROCEDURES USING POLYMAKE AND TOPCOM:
    4846  secondaryFan()       computes the secondary fan of a marked polytope
    4947
    50 PROCEDURES CONCERNED WITH PLANAR POLYGONS:
    5148  cycleLength()      computes the cycleLength of cycle
    5249  splitPolygon()     splits a marked polygon into vertices, facets, interior points
     
    5956  ellipticNFDB()     displays the 16 normal forms of elliptic polygons
    6057
    61 AUXILARY PROCEDURES:
    6258  polymakeKeepTmpFiles()  determines if the files created in /tmp should be kept
    6359
     
    9490/////////////////////////////////////////////////////////////////////////////
    9591
    96 proc polymakePolytope (intmat polytope,list #)
     92proc polymakePolytope (intmat polytop,list #)
    9793"USAGE:  polymakePolytope(polytope[,#]);   polytope list, # string
    9894ASSUME:  each row of polytope gives the coordinates of a lattice point of a
     
    158154  }
    159155  // create the lattice point list for polymake
    160   sp=sp+intmatToPolymake(polytope,"points");
     156  sp=sp+intmatToPolymake(polytop,"points");
    161157  // initialise dateiname.polymake and compute the vertices
    162158  write(":w /tmp/"+dateiname+".polymake",sp);
     
    222218  else
    223219  {
    224     intmat neq[1][ncols(polytope)+1];
     220    intmat neq[1][ncols(polytop)+1];
    225221  }
    226222  // delete the tmp-files, if polymakekeeptmpfiles is not set
     
    256252/////////////////////////////////////////////////////////////////////////////
    257253
    258 proc newtonPolytope (poly f,list #)
    259 "USAGE: newtonPolytope(f[,#]);  f poly, # string
     254proc newtonPolytopeP (poly f,list #)
     255"USAGE: newtonPolytopeP(f[,#]);  f poly, # string
    260256RETURN: list L with four entries
    261257@*            L[1] : an integer matrix whose rows are the coordinates of vertices
     
    287283         which then will be used instead of 'newtonPolytope' in the name of
    288284         the polymake output file
    289 EXAMPLE: example newtonPolytope;   shows an example"
     285EXAMPLE: example newtonPolytopeP;   shows an example"
    290286{
    291287  int i,j;
     
    315311   poly f=y3+x2+xy+2xz+yz+z2+1;
    316312   // the Newton polytope of f is
    317    list np=newtonPolytope(f);
     313   list np=newtonPolytopeP(f);
    318314   // the vertices of the Newton polytope are:
    319315   np[1];
     
    327323   f=x2-y3;
    328324   // the Newton polytope of f is
    329    np=newtonPolytope(f);
     325   np=newtonPolytopeP(f);
    330326   // the vertices of the Newton polytope are:
    331327   np[1];
     
    536532   poly f=y3+x2+xy+2xz+yz+z2+1;
    537533   // the Newton polytope of f is
    538    list np=newtonPolytope(f);
     534   list np=newtonPolytopeP(f);
    539535   // the Groebner fan of f, i.e. the normal fan of the Newton polytope
    540536   list gf=normalFan(np[1],np[4],np[3],1,"x,y,z");
Note: See TracChangeset for help on using the changeset viewer.