source: git/Singular/LIB/spectrum.lib @ d0b24a

spielwiese
Last change on this file since d0b24a was d0b24a, checked in by Mathias Schulze <mschulze@…>, 23 years ago
*mschulze: modified procedure descriptions git-svn-id: file:///usr/local/Singular/svn/trunk@5176 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.8 KB
Line 
1///////////////////////////////////////////////////////////////////////////////
2version="$Id: spectrum.lib,v 1.12 2001-02-02 16:21:37 mschulze Exp $";
3category="Singularities";
4info="
5LIBRARY:  spectrum.lib  Singularity Spectrum for Nondegenerate Singularities
6AUTHOR:   S. Endrass
7
8PROCEDURES:
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
14";
15
16///////////////////////////////////////////////////////////////////////////////
17
18proc spectrumnd (poly f, list #)
19"USAGE:   spectrumnd(f[,1]);  f poly
20ASSUME:  f has nondegenerate principal part
21RETURN:  a list containing the spectrum of f
22NOTE     if a second argument 1 is given,
23         no test for a degenerate principal part will be done
24EXAMPLE: example spectrumnd; shows examples
25"
26{
27  if(size(#)==0)
28  {  return(system("spectrum",f)); }
29  return (system("spectrum",f,#[1]));
30}
31example
32{ "EXAMPLE:"; echo = 2;
33  ring r=0,(x,y),ds;
34  poly f=x^31+x^6*y^7+x^2*y^12+x^13*y^2+y^29;
35  spectrumnd(f);
36}
37///////////////////////////////////////////////////////////////////////////////
38
39proc semicont (list s, list ss, list #)
40"USAGE:   semicont(s,ss[,1]);  s, ss list
41RETURN:  1 if ss is semicontinous for s using half open intervals, 0 otherwise
42NOTE:    if a third argument 1 is given, open intervals are used
43EXAMPLE: example semicont; shows examples
44"
45{
46  if(size(#)==0)
47  {  return(system("semic",s,ss)); }
48  return (system("semic",s,ss,#[1]));
49}
50example
51{ "EXAMPLE:"; echo = 2;
52}
53///////////////////////////////////////////////////////////////////////////////
54proc semicontsqh (list s, list ss)
55"USAGE: semicontsqh(s,ss);  s, ss list
56RETURN: 1 if ss is semicontinous for s using open and half open intervals,
57        0 otherwise
58EXAMPLE: example semicontsqh; shows examples
59"
60{
61  return (system("semic",s,ss,1));
62}
63example
64{ "EXAMPLE:"; echo = 2;
65}
66///////////////////////////////////////////////////////////////////////////////
67proc spadd (list s1, list s2)
68"USAGE:  spadd(s1,s2);  s1, s2 list
69RETURN:  a list containing the sum of the two spectra s1 and s2
70EXAMPLE: example spadd; shows examples
71"
72{
73  return (system("spadd",s1,s2));
74}
75example
76{ "EXAMPLE:"; echo = 2;
77}
78///////////////////////////////////////////////////////////////////////////////
79proc spmul (list s, int k)
80"USAGE:  spmul(s,k);  s list, k int
81RETURN:  a list containing the product of the spectrum s with the integer k
82EXAMPLE: example spmul; shows examples
83"
84{
85  return (system("spmul",s,k));
86}
87example
88{ "EXAMPLE:"; echo = 2;
89}
90///////////////////////////////////////////////////////////////////////////////
Note: See TracBrowser for help on using the repository browser.