Changeset a42239 in git


Ignore:
Timestamp:
Apr 4, 1998, 1:18:16 AM (26 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
fa842032519085fea6da2813d2d35f50f4b93491
Parents:
5480dab448af565abfd5b8f28e1766de56df7613
Message:
*** empty log message ***


git-svn-id: file:///usr/local/Singular/svn/trunk@1319 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular/LIB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/classify.lib

    r5480da ra42239  
    1 // $Id: classify.lib,v 1.19 1997-12-15 10:35:03 krueger Exp $
     1// $Id: classify.lib,v 1.20 1998-04-03 23:18:15 krueger Exp $
    22///////////////////////////////////////////////////////////////////////////////
    33
     
    2929LIB "elim.lib";
    3030LIB "sing.lib";
     31
     32///////////////////////////////////////////////////////////////////////////////
     33proc classify_init
     34{
     35  string s;
     36  link l="DBM:r NFlist";
     37  s = read(l,"VERSION");
     38  if (s == "" ) {
     39    "(classify.lib): Need to create database...";
     40    LIB"makedbm.lib";
     41    create_sing_dbm();
     42  }
     43  close(l);
     44  l="DBM:r NFlist";
     45  s = read(l,"VERSION");
     46  //"(classify.lib): Creation done. Current version:", s;
     47}
    3148///////////////////////////////////////////////////////////////////////////////
    3249
     
    6683  map conv_ext2top=ring_ext,maxideal(1);
    6784
     85  if(defined(@ringdisplay)!=0) { kill @ringdisplay; }
    6886  string @ringdisplay = "ring_ext";
    6987  export @ringdisplay;
     
    119137    }
    120138    @ringdisplay = "setring RingB;";
     139    if(defined(RingB)!=0) { kill RingB; }
    121140    execute ("ring RingB="+charstr(basering)+",("+A_Z("x", n)+"),(c,ds);");
    122141    export RingB;
     
    151170    f = jet(f, K);
    152171    v = HKclass(milnorcode(f));
    153     if(v[2]>0) { debug_log(0, "Guessing type via Hilbert polynomial: ", v[1]);}
     172    if(v[2]>0) { debug_log(0, "Guessing type via Milnorcode: ", v[1]);}
    154173    else {
    155174      debug_log(0, "Hilbert polynomial not recognised. Milnor code = ",
     
    439458      if(Dim==0) { return(printresult(23,f,"Z["+string(p-1)+",0]", cstn, p)); }
    440459      if( Mult == 1 ) {
    441          return(printresult(24, f, "Z["+string(p-1)+","+string(Mu-15)+"]",
     460         return(printresult(24, f, "Z["+string(p-1)+","+string(Mu-3-6*p)+"]",
    442461                cstn, p));
    443462      }
     
    17221741RETURN:   Normal form of f in Arnold's list
    17231742REMARK:   try to determine the normal form of f by invariants, mainly by
    1724           computing the Hilbert funktion of the Milnor albegra,
     1743          computing the Hilbert function of the Milnor albegra,
    17251744          no coordinate change is needed (see also proc 'milnorcode').
    17261745EXAMPLE:  example quickclass; shows an example
     
    22202239  list v, ret;
    22212240
     2241  classify_init();
    22222242  ret = 0, 0;
    22232243  k = #[1];
     
    24392459proc basicinvariants(poly f)
    24402460USAGE:    basicinvariants(f);   f = poly
    2441 COMPUTE:  Compute basic invariants of f: an upper bound d for the determinacy,
    2442           the milnor number mu and the corank c of f
     2461COMPUTE:  Compute basic invariants of f: an upper bound d for the
     2462          determinacy, the milnor number mu and the corank c of f
    24432463RETURN:   intvec: d, mu, c
    24442464EXAMPLE:  example basicinvariants; shows an example
  • Singular/LIB/makedbm.lib

    r5480da ra42239  
    1 // $Id: makedbm.lib,v 1.5 1997-12-15 10:35:07 krueger Exp $
     1// $Id: makedbm.lib,v 1.6 1998-04-03 23:18:16 krueger Exp $
    22//=========================================================================
    33//
     
    1010   dbm_read(l);          read all entries from a DBM-databaes pointed by l
    1111   dbm_getnext(l);       read next entry from a DBM-databaes pointed by l
    12 
    13 //=============================================================================
    14 proc _init()
    15 {
    16   "_init() makedbm started";
    17 }
    18 
     12   create_sing_dbm();
     13   read_sing_dbm();
     14
     15//=============================================================================
     16
     17proc makedbm_init()
     18{
     19  string s;
     20  link l="DBM:r NFlist";
     21  s = read(l,"VERSION");
     22  if (s == "" ) {
     23    "Need to create database...";
     24    create_sing_dbm();
     25  }
     26  close(l);
     27  l="DBM:r NFlist";
     28  s = read(l,"VERSION");
     29  "Creation done. Current version:", s;
     30}
    1931//=============================================================================
    2032
     
    6375  write(l, "X[1,0]", "x4+a*x2y2+y4");
    6476  write(l, "X[1,r]", "x4+x2y2+a*y^(4+r)");
    65   write(l, "X[k,0]", "x4+b*x3y^k+a*x2y^(2*k) + xy^(3*k)");
    66   write(l, "X[k,r]", "x4+a*x3*y^k+x2y^(2*k)+b*(y^(4*k+r))");
    67   write(l, "W[12k]", "x4+y^(4*k+1)+a*x*(y^(3*k+1))+c*x2*(y^(2*k+1))");
    68   write(l, "W[12k+1]", "x4+x*(y^(3*k+1))+a*x2*(y^(2*k+1))+c*y^(4*k+2)");
     77  write(l, "X[k,0]", "x4+b*x^3*y^k+a*x^2*y^(2*k) + x*y^(3*k)");
     78  write(l, "X[k,r]", "x4+a*x^3*y^k+x^2*y^(2*k)+b*(y^(4*k+r))");
     79  write(l, "W[12k]", "x4+y^(4*k+1)+a*x*(y^(3*k+1))+c*x^2*(y^(2*k+1))");
     80  write(l, "W[12k+1]", "x4+x*(y^(3*k+1))+a*x^2*(y^(2*k+1))+c*y^(4*k+2)");
    6981  write(l, "W[12k+5]", "x4+x*(y^(3*k+2))+a*x2*(y^(2*k+2))+b*y^(4*k+3)");
    7082  write(l, "W[12k+6]", "x4+y^(4*k+3)+a*x*(y^(3*k+3))+b*x2*(y^(2*k+2))");
     
    8294  write(l, "Z[k,12k+6r]", "(x+a*(y^k))*(x3+x*(y^(2*k+2*r+1))+b*y^(3*k+3*r+2))");
    8395  write(l, "Z[k,12k+6r+1]", "(x+a*(y^k))*(x3+b*x*(y^(2*k+2*r+2))+y^(3*k+3*r+2))");
    84   write(l, "Z[k,0]", "y*(x3+d*x2*(y^k)+c*x*(y^(2*k+1))+y^(3*k))");
    85   write(l, "Z[k,r]", "y*(x3+x2y^(k+1)+b*(y^(3*k+r+3)))");
     96  write(l, "Z[k,0]", "y*(x3+d*x2*(y^(k+1))+c*x*(y^(2*k+3))+y^(3*k+3))");
     97  write(l, "Z[k,r]", "y*(x3+x^2*y^(k+1)+b*(y^(3*k+r+3)))");
    8698  write(l, "Z[6k+5]", "y*(x3+b*x*(y^(2*k+1))+y^(3*k+1))");
    8799  write(l, "Z[6k+6]", "y*(x3+x*(y^(2*k+1))+b*y^(3*k+2))");
Note: See TracChangeset for help on using the changeset viewer.