Changeset a2c96e in git for Singular/LIB/sing.lib


Ignore:
Timestamp:
Sep 24, 2008, 9:54:59 AM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a1268301053fa4acc4bf30c8f2e760fe2df2bb7f
Parents:
040d28cacce3a8a9665322d46de21e8b0b452c8a
Message:
* GMG: hnoether.lib: comments to Newton non-degenerate added
       inout.lib::show id -> @@id
       sing.lib::milnor  printlevel and output


git-svn-id: file:///usr/local/Singular/svn/trunk@11078 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sing.lib

    r040d28 ra2c96e  
    1 // $Id: sing.lib,v 1.30 2006-08-02 15:40:52 Singular Exp $
    2 //(GMG/BM, last modified 26.06.96)
    3 ///////////////////////////////////////////////////////////////////////////////
    4 version="$Id: sing.lib,v 1.30 2006-08-02 15:40:52 Singular Exp $";
     1// $Id: sing.lib,v 1.31 2008-09-24 07:54:59 Singular Exp $
     2//(GMG/BM, last modified 26.06.96,
     3//GMG, 27.7.08: in milnor printlevel und Ausschrift geŠndert)
     4///////////////////////////////////////////////////////////////////////////////
     5version="$Id: sing.lib,v 1.31 2008-09-24 07:54:59 Singular Exp $";
    56category="Singularities";
    67info="
     
    264265         singularity) in generic form, resp. -1 if not
    265266NOTE:    use proc nf_icis to put generators in generic form
    266          printlevel >=0: display comments (default)
     267         printlevel >=1: display comments
    267268EXAMPLE: example milnor; shows an example
    268269"
     
    271272  int n = size(i);
    272273  int l,q,m_nr;  ideal t;  intvec disc;
    273   int p = printlevel-voice+3;  // p=printlevel+1 (default: p=1)
     274  int p = printlevel-voice+2;             // p=printlevel+1 (default: p=0)
    274275//---------------------------- hypersurface case ------------------------------
    275276  if( n==1 or i==0 )
     
    277278     i = std(jacob(i[1]));
    278279     m_nr = vdim(i);
    279      if( m_nr<0 and p>=1 ) { "// no isolated singularity"; }
     280     if( m_nr<0 and p>=1 ) { "// Milnor number is infinite"; }
    280281     return(m_nr);
    281282  }
     
    302303{ "EXAMPLE:"; echo = 2;
    303304   int p      = printlevel;
    304    printlevel = 1;
     305   printlevel = 2;
    305306   ring r     = 32003,(x,y,z),ds;
    306307   ideal j    = x5+y6+z6,x2+2y2+3z2,xyz+yx;
     
    799800"USAGE:   codim(id1,id2); id1,id2 ideal or module, both must be standard bases
    800801RETURN:  int, which is:
    801          1. the codimension of id2 in id1, i.e. the vectorspace dimension of
    802             id1/id2 if id2 is contained in id1 and if this number is finite@*
     802         1. the vectorspace dimension of id1/id2 if id2 is contained in id1
     803            and if this number is finite@*
    803804         2. -1 if the dimension of id1/id2 is infinite@*
    804          3. -2 if id2 is not contained in id1,
    805 COMPUTE: consider the two Hilbert series iv1(t) and iv2(t), then, in case 1.,
    806          q(t)=(iv2(t)-iv1(t))/(1-t)^n must be rational, and the result is the
    807          sum of the coefficients of q(t) (n dimension of basering)
     805         3. -2 if id2 is not contained in id1
     806COMPUTE: consider the Hilbert series iv1(t) of id1 and iv2(t) of id2.
     807         If codim(id1,id2) is finite,  q(t)=(iv2(t)-iv1(t))/(1-t)^n is
     808         rational, and the codimension is the sum of the coefficients of q(t)
     809         (n = dimension of basering).
    808810EXAMPLE: example codim; shows an example
    809811"
     
    824826   if (i1 < 0)
    825827   {
     828     if ( i2 < 0 )
     829     {
     830        return(0);
     831     }
    826832     if (i2 == 0)
    827833     {
    828        return vdim(id2);
     834       return (vdim(id2));
    829835     }
    830836     else
Note: See TracChangeset for help on using the changeset viewer.