Changeset 93085a in git
- Timestamp:
- Mar 20, 2001, 3:18:03 PM (22 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 8960eca892efa27138b5030e016a1aede9a12bea
- Parents:
- 8c4269a2193d8ebf4d512ac0304fe2a3644f8533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/spectrum.lib
r8c4269a r93085a 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="$Id: spectrum.lib,v 1.1 2 2001-02-02 16:21:37mschulze Exp $";2 version="$Id: spectrum.lib,v 1.13 2001-03-20 14:18:03 mschulze Exp $"; 3 3 category="Singularities"; 4 4 info=" … … 7 7 8 8 PROCEDURES: 9 spectrumnd(poly[,1]); spectrum of a nondegenerate isolated singularity 10 semicont(s1,s2[,1]); tests if s2 is semicontinous for s1 11 semicontqh(s1,s2); semicontinuity test using open and half open intervals 12 spadd(s1,s2); sum of two spectra s1 and s2 13 spmul(s,k); product of spectrum s with integer k 9 spectrumnd(poly f[,1]); spectrum of nondegenerate isolated singularity f 14 10 "; 15 11 16 12 /////////////////////////////////////////////////////////////////////////////// 17 13 18 proc spectrumnd (poly f, list #) 19 "USAGE: spectrumnd(f[,1]); f poly 20 ASSUME: f has nondegenerate principal part 21 RETURN: a list containing the spectrum of f 22 NOTE if a second argument 1 is given, 23 no test for a degenerate principal part will be done 24 EXAMPLE: example spectrumnd; shows examples 14 proc spectrumnd (poly f,list #) 15 "USAGE: spectrumnd(f[,1]); poly f 16 ASSUME: basering has local ordering, 17 f has isolated singularity at 0 and nondegenerate principal part 18 RETURN: 19 @format 20 list S: 21 ideal S[1]: spectral numbers 22 intvec S[2]: 23 int S[2][i]: multiplicity of spectral number S[1][i] 24 @end format 25 NOTE: if a second argument 1 is given, 26 no test for a degenerate principal part will be done 27 SEE_ALSO: gaussman_lib 28 KEYWORDS: singularities; Gauss-Manin connection; spectrum 29 EXAMPLE: example spectrumnd; shows an example 25 30 " 26 31 { 27 32 if(size(#)==0) 28 { return(system("spectrum",f)); } 29 return (system("spectrum",f,#[1])); 33 { 34 list l=system("spectrum",f); 35 } 36 else 37 { 38 list l=system("spectrum",f,#[1]); 39 } 40 ideal s=number(l[4][1])/l[5][1]-1; 41 int i; 42 for(i=l[3];i>1;i--) 43 { 44 s[i]=number(l[4][i])/l[5][i]-1; 45 } 46 return(list(s,l[6])); 30 47 } 31 48 example … … 37 54 /////////////////////////////////////////////////////////////////////////////// 38 55 39 proc semicont (list s, list ss, list #) 40 "USAGE: semicont(s,ss[,1]); s, ss list 41 RETURN: 1 if ss is semicontinous for s using half open intervals, 0 otherwise 42 NOTE: if a third argument 1 is given, open intervals are used 43 EXAMPLE: example semicont; shows examples 44 " 56 proc semicont(list #) 45 57 { 46 if(size(#)==0) 47 { return(system("semic",s,ss)); } 48 return (system("semic",s,ss,#[1])); 49 } 50 example 51 { "EXAMPLE:"; echo = 2; 58 ERROR("semicont was replaced by spsemicont in gaussman.lib"); 52 59 } 53 60 /////////////////////////////////////////////////////////////////////////////// 54 proc semicontsqh (list s, list ss) 55 "USAGE: semicontsqh(s,ss); s, ss list 56 RETURN: 1 if ss is semicontinous for s using open and half open intervals, 57 0 otherwise 58 EXAMPLE: example semicontsqh; shows examples 59 " 61 62 proc semicontqh(list #) 60 63 { 61 return (system("semic",s,ss,1)); 62 } 63 example 64 { "EXAMPLE:"; echo = 2; 64 ERROR("semicontqh was replaced by spsemicont in gaussman.lib"); 65 65 } 66 66 /////////////////////////////////////////////////////////////////////////////// 67 proc spadd (list s1, list s2) 68 "USAGE: spadd(s1,s2); s1, s2 list 69 RETURN: a list containing the sum of the two spectra s1 and s2 70 EXAMPLE: example spadd; shows examples 71 " 72 { 73 return (system("spadd",s1,s2)); 74 } 75 example 76 { "EXAMPLE:"; echo = 2; 77 } 78 /////////////////////////////////////////////////////////////////////////////// 79 proc spmul (list s, int k) 80 "USAGE: spmul(s,k); s list, k int 81 RETURN: a list containing the product of the spectrum s with the integer k 82 EXAMPLE: example spmul; shows examples 83 " 84 { 85 return (system("spmul",s,k)); 86 } 87 example 88 { "EXAMPLE:"; echo = 2; 89 } 90 /////////////////////////////////////////////////////////////////////////////// 67
Note: See TracChangeset
for help on using the changeset viewer.