Changeset 09b2b1a in git for Singular/LIB/spectrum.lib
- Timestamp:
- Mar 6, 2002, 3:22:12 PM (21 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- ec93f1c1322989965789c2b3ffdae40d5ba12b59
- Parents:
- a5d1493a2876da1d7012bb99d6f928eaf57d917d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/spectrum.lib
ra5d1493 r09b2b1a 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="$Id: spectrum.lib,v 1.1 6 2001-08-27 14:48:00 SingularExp $";2 version="$Id: spectrum.lib,v 1.17 2002-03-06 14:22:12 mschulze Exp $"; 3 3 category="Singularities"; 4 4 info=" … … 69 69 } 70 70 /////////////////////////////////////////////////////////////////////////////// 71 72 proc spadd(list s1, list s2)73 "USAGE: spadd(s1,s2); list s1, s274 RETURN: a list containing the sum of the two spectra s1 and s275 EXAMPLE: example spadd; shows an example76 "77 {78 return (system("spadd",s1,s2));79 }80 example81 { "EXAMPLE:"; echo = 2;82 ring r=0,(x,y),ds;83 list s1=spectrumnd(x5+x2y2+y5);84 s1;85 list s2=spectrumnd(x2+y3);86 s2;87 spadd(s1,s2);88 }89 ///////////////////////////////////////////////////////////////////////////////90 91 proc spmul(list s, int k)92 "USAGE: spmul(s,k); list s, int k93 RETURN: a list containing the product of the spectrum s with the integer k94 EXAMPLE: example spmul; shows an example95 "96 {97 return (system("spmul",s,k));98 }99 example100 { "EXAMPLE:"; echo = 2;101 ring r=0,(x,y),ds;102 list s=spectrumnd(x5+x2y2+y5);103 s;104 spmul(s,2);105 >>>>>>> 1.12.2.1106 }107 ///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.