Changeset a42239 in git
- Timestamp:
- Apr 4, 1998, 1:18:16 AM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- fa842032519085fea6da2813d2d35f50f4b93491
- Parents:
- 5480dab448af565abfd5b8f28e1766de56df7613
- 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:03krueger Exp $1 // $Id: classify.lib,v 1.20 1998-04-03 23:18:15 krueger Exp $ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 … … 29 29 LIB "elim.lib"; 30 30 LIB "sing.lib"; 31 32 /////////////////////////////////////////////////////////////////////////////// 33 proc 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 } 31 48 /////////////////////////////////////////////////////////////////////////////// 32 49 … … 66 83 map conv_ext2top=ring_ext,maxideal(1); 67 84 85 if(defined(@ringdisplay)!=0) { kill @ringdisplay; } 68 86 string @ringdisplay = "ring_ext"; 69 87 export @ringdisplay; … … 119 137 } 120 138 @ringdisplay = "setring RingB;"; 139 if(defined(RingB)!=0) { kill RingB; } 121 140 execute ("ring RingB="+charstr(basering)+",("+A_Z("x", n)+"),(c,ds);"); 122 141 export RingB; … … 151 170 f = jet(f, K); 152 171 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]);} 154 173 else { 155 174 debug_log(0, "Hilbert polynomial not recognised. Milnor code = ", … … 439 458 if(Dim==0) { return(printresult(23,f,"Z["+string(p-1)+",0]", cstn, p)); } 440 459 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)+"]", 442 461 cstn, p)); 443 462 } … … 1722 1741 RETURN: Normal form of f in Arnold's list 1723 1742 REMARK: try to determine the normal form of f by invariants, mainly by 1724 computing the Hilbert fun ktion of the Milnor albegra,1743 computing the Hilbert function of the Milnor albegra, 1725 1744 no coordinate change is needed (see also proc 'milnorcode'). 1726 1745 EXAMPLE: example quickclass; shows an example … … 2220 2239 list v, ret; 2221 2240 2241 classify_init(); 2222 2242 ret = 0, 0; 2223 2243 k = #[1]; … … 2439 2459 proc basicinvariants(poly f) 2440 2460 USAGE: 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 f2461 COMPUTE: Compute basic invariants of f: an upper bound d for the 2462 determinacy, the milnor number mu and the corank c of f 2443 2463 RETURN: intvec: d, mu, c 2444 2464 EXAMPLE: example basicinvariants; shows an example -
Singular/LIB/makedbm.lib
r5480da ra42239 1 // $Id: makedbm.lib,v 1. 5 1997-12-15 10:35:07krueger Exp $1 // $Id: makedbm.lib,v 1.6 1998-04-03 23:18:16 krueger Exp $ 2 2 //========================================================================= 3 3 // … … 10 10 dbm_read(l); read all entries from a DBM-databaes pointed by l 11 11 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 17 proc 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 } 19 31 //============================================================================= 20 32 … … 63 75 write(l, "X[1,0]", "x4+a*x2y2+y4"); 64 76 write(l, "X[1,r]", "x4+x2y2+a*y^(4+r)"); 65 write(l, "X[k,0]", "x4+b*x 3y^k+a*x2y^(2*k) + xy^(3*k)");66 write(l, "X[k,r]", "x4+a*x 3*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*x 2*(y^(2*k+1))");68 write(l, "W[12k+1]", "x4+x*(y^(3*k+1))+a*x 2*(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)"); 69 81 write(l, "W[12k+5]", "x4+x*(y^(3*k+2))+a*x2*(y^(2*k+2))+b*y^(4*k+3)"); 70 82 write(l, "W[12k+6]", "x4+y^(4*k+3)+a*x*(y^(3*k+3))+b*x2*(y^(2*k+2))"); … … 82 94 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))"); 83 95 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+x 2y^(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)))"); 86 98 write(l, "Z[6k+5]", "y*(x3+b*x*(y^(2*k+1))+y^(3*k+1))"); 87 99 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.