Changeset a2c96e in git for Singular/LIB/sing.lib
- Timestamp:
- Sep 24, 2008, 9:54:59 AM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a1268301053fa4acc4bf30c8f2e760fe2df2bb7f
- Parents:
- 040d28cacce3a8a9665322d46de21e8b0b452c8a
- 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 gendert) 4 /////////////////////////////////////////////////////////////////////////////// 5 version="$Id: sing.lib,v 1.31 2008-09-24 07:54:59 Singular Exp $"; 5 6 category="Singularities"; 6 7 info=" … … 264 265 singularity) in generic form, resp. -1 if not 265 266 NOTE: use proc nf_icis to put generators in generic form 266 printlevel >= 0: display comments (default)267 printlevel >=1: display comments 267 268 EXAMPLE: example milnor; shows an example 268 269 " … … 271 272 int n = size(i); 272 273 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) 274 275 //---------------------------- hypersurface case ------------------------------ 275 276 if( n==1 or i==0 ) … … 277 278 i = std(jacob(i[1])); 278 279 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"; } 280 281 return(m_nr); 281 282 } … … 302 303 { "EXAMPLE:"; echo = 2; 303 304 int p = printlevel; 304 printlevel = 1;305 printlevel = 2; 305 306 ring r = 32003,(x,y,z),ds; 306 307 ideal j = x5+y6+z6,x2+2y2+3z2,xyz+yx; … … 799 800 "USAGE: codim(id1,id2); id1,id2 ideal or module, both must be standard bases 800 801 RETURN: int, which is: 801 1. the codimension of id2 in id1, i.e. the vectorspace dimension of802 id1/id2 if id2 is contained in id1and 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@* 803 804 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 806 COMPUTE: 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). 808 810 EXAMPLE: example codim; shows an example 809 811 " … … 824 826 if (i1 < 0) 825 827 { 828 if ( i2 < 0 ) 829 { 830 return(0); 831 } 826 832 if (i2 == 0) 827 833 { 828 return vdim(id2);834 return (vdim(id2)); 829 835 } 830 836 else
Note: See TracChangeset
for help on using the changeset viewer.