source: git/Singular/LIB/spectrum.lib @ 02a0976

spielwiese
Last change on this file since 02a0976 was 02a0976, checked in by Hans Schönemann <hannes@…>, 23 years ago
*hannes/GMG: lib-docu git-svn-id: file:///usr/local/Singular/svn/trunk@4918 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.9 KB
Line 
1// $Id: spectrum.lib,v 1.7 2000-12-15 16:20:45 Singular Exp $
2///////////////////////////////////////////////////////////////////////////////
3
4version="$Id: spectrum.lib,v 1.7 2000-12-15 16:20:45 Singular Exp $";
5info="
6LIBRARY:  spectrum.lib   PROCEDURES FOR COMPUTING SINGULARITY SPECTRA
7
8PROCEDURES:
9 spectrum(poly[,1]);    spectrum of a isolated singularity (with/without tests)
10 semic(s1,s2[,1]);      tests if s2 is semicontinous for s1 using
11                        half open intervalls
12                        (and open intervalls for a 3rd paramater 1)
13 semicqh(s1,s2[,1]);    tests if s2 is semicontinous for s1 using
14                        open and half open intervalls
15 spadd(s1,s2);          sum of two spectra s1 and s2
16 spmul(s,k);            multiplies the spectrum s with the int k
17          (parameters in square brackets [] are optional)
18";
19
20///////////////////////////////////////////////////////////////////////////////
21
22proc spectrum (poly f, list #)
23"USAGE:  spectrum(f[,1]);  f polynomial
24         computes the spectrum of f
25         if a second argument 1 is given,
26         no test for a degenerate principal part will be done
27RETURN:  list
28EXAMPLE: example spectrum; shows examples
29"
30{
31  if(size(#)==0)
32  {  return(system("spectrum",f)); }
33  return (system("spectrum",f,#[1]));
34}
35example
36{ "EXAMPLE:"; echo = 2;
37  ring r=0,(x,y),ds;
38  poly f=x^31+x^6*y^7+x^2*y^12+x^13*y^2+y^29;
39  spectrum(f);
40}
41///////////////////////////////////////////////////////////////////////////////
42
43proc semic (list s, list ss, list #)
44"USAGE:  semic(s,ss[,i]);  s, ss spectra, i int
45         tests if ss is semicontinous for s using half open intervalls
46         (and open intervalls for a 3rd paramater 1)
47RETURN:  int
48EXAMPLE: example semic; shows examples
49"
50{
51  if(size(#)==0)
52  {  return(system("semic",s,ss)); }
53  return (system("semic",s,ss,#[1]));
54}
55example
56{ "EXAMPLE:"; echo = 2;
57}
58///////////////////////////////////////////////////////////////////////////////
59proc semicsqh (list s, list ss)
60"USAGE: semicsqh(s,ss);  s, ss spectra, i int
61        tests if ss is semicontinous for s using open and half open intervalls
62RETURN: int
63EXAMPLE: example semicsqh; shows examples
64"
65{
66  return (system("semic",s,ss,1));
67}
68example
69{ "EXAMPLE:"; echo = 2;
70}
71///////////////////////////////////////////////////////////////////////////////
72proc spadd (list s1, list s2)
73"USAGE:  spadd(s1,s2);  s1, s2 spectra
74         sum of two spectra s1 and s2
75RETURN:  list
76EXAMPLE: example spadd; shows examples
77"
78{
79  return (system("spadd",s1,s2));
80}
81example
82{ "EXAMPLE:"; echo = 2;
83}
84///////////////////////////////////////////////////////////////////////////////
85proc spmul (list s, int k)
86"USAGE:  spmul(s,k);  s spectrum, k int
87         multiplies the spectrum s with the int k
88RETURN:  list
89EXAMPLE: example spmul; shows examples
90"
91{
92  return (system("spmul",s,k));
93}
94example
95{ "EXAMPLE:"; echo = 2;
96}
97///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.