Changeset cd6dbb2 in git
- Timestamp:
- Nov 11, 1999, 5:03:33 PM (24 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- c2c075e00c1bcfd1980cd1e24e5d2c3990ea8ab4
- Parents:
- 1d00a525ad0cde0db365946cde621499f3a50156
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/sing.lib
r1d00a5 rcd6dbb2 1 // $Id: sing.lib,v 1.1 7 1999-09-21 17:32:18Singular Exp $1 // $Id: sing.lib,v 1.18 1999-11-11 16:03:33 Singular Exp $ 2 2 //(GMG/BM, last modified 26.06.96) 3 3 /////////////////////////////////////////////////////////////////////////////// 4 4 5 version="$Id: sing.lib,v 1.1 7 1999-09-21 17:32:18Singular Exp $";5 version="$Id: sing.lib,v 1.18 1999-11-11 16:03:33 Singular Exp $"; 6 6 info=" 7 7 LIBRARY: sing.lib PROCEDURES FOR SINGULARITIES … … 21 21 nf_icis(i); generic combinations of generators; get ICIS in nf 22 22 slocus(i); ideal of singular locus of ideal i 23 spectrum(f,w);spectrum numbers of w-homogeneous polynomial f23 qhspectrum(f,w); spectrum numbers of w-homogeneous polynomial f 24 24 Tjurina(i); SB of Tjurina module of ideal i (assume i is ICIS) 25 25 tjurina(i); Tjurina number of ideal i (assume i is ICIS) … … 378 378 /////////////////////////////////////////////////////////////////////////////// 379 379 380 proc spectrum (poly f, intvec w)381 "USAGE: spectrum(f,w); f=poly, w=intvec;380 proc qhspectrum (poly f, intvec w) 381 "USAGE: qhspectrum(f,w); f=poly, w=intvec; 382 382 ASSUME: f is a weighted homogeneous isolated singularity w.r.t. the weights 383 383 given by w; w must consist of as many positive integers as there … … 389 389 No return value if basering has parameters or if f is no isolated 390 390 singularity, displays a warning in this case 391 EXAMPLE: example spectrum; shows an example391 EXAMPLE: example qhspectrum; shows an example 392 392 " 393 393 { … … 425 425 poly f=x3+y5+z2; 426 426 intvec w=10,6,15; 427 spectrum(f,w);427 qhspectrum(f,w); 428 428 // the spectrum numbers are: 429 429 // 1/30,7/30,11/30,13/30,17/30,19/30,23/30,29/30 -
Singular/iparith.cc
r1d00a5 rcd6dbb2 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.18 4 1999-10-22 11:14:10 obachmanExp $ */4 /* $Id: iparith.cc,v 1.185 1999-11-11 16:03:31 Singular Exp $ */ 5 5 6 6 /* … … 282 282 { "sortvec", 0, SORTVEC_CMD , CMD_1}, 283 283 #ifdef HAVE_SPECTRUM 284 { " Spectrum", 0, SPECTRUM_CMD , CMD_123},284 { "spectrum", 0, SPECTRUM_CMD , CMD_123}, 285 285 { "semic", 0, SEMIC_CMD , CMD_23}, 286 286 #endif … … 1852 1852 int wmaxl=maxl; 1853 1853 ideal u_id=(ideal)u->Data(); 1854 1854 1855 1855 maxl--; 1856 1856 if ((maxl==-1) && (iiOp!=MRES_CMD)) -
Singular/spectrum.cc
r1d00a5 rcd6dbb2 1289 1289 { 1290 1290 semicState state; 1291 BOOLEAN qh=(( int)w->Data())==1);1291 BOOLEAN qh=(((int)w->Data())==1); 1292 1292 1293 1293 // ----------------- … … 1295 1295 // ----------------- 1296 1296 1297 lists l1 = (lists) first->Data( );1298 lists l2 = (lists) second->Data( );1297 lists l1 = (lists)u->Data( ); 1298 lists l2 = (lists)v->Data( ); 1299 1299 1300 1300 if( (state=list_is_spectrum( l1 ))!=semicOK ) … … 1313 1313 spectrum s2( l2 ); 1314 1314 1315 res ult->rtyp = INT_CMD;1315 res->rtyp = INT_CMD; 1316 1316 if (qh) 1317 res ult->data = (void*)(s1.mult_spectrumh( s2 ));1317 res->data = (void*)(s1.mult_spectrumh( s2 )); 1318 1318 else 1319 res ult->data = (void*)(s1.mult_spectrum( s2 ));1319 res->data = (void*)(s1.mult_spectrum( s2 )); 1320 1320 } 1321 1321 … … 1328 1328 BOOLEAN semicProc ( leftv res,leftv u,leftv v ) 1329 1329 { 1330 sleft tmp;1331 memset(&tmp,0,sizeof(tmp) ;1330 sleftv tmp; 1331 memset(&tmp,0,sizeof(tmp)); 1332 1332 tmp.rtyp=INT_CMD; 1333 1333 /* tmp.data = (void *)0; -- done by memset */
Note: See TracChangeset
for help on using the changeset viewer.