Top
Back: spadd
Forward: Invariant theory
FastBack: spcurve_lib
FastForward: Invariant theory
Up: spectrum_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.5.10.5 spmul

Procedure from library spectrum.lib (see spectrum_lib).

Usage:
spmul(s,k); list s, int k

Return:
a list containing the product of the spectrum s with the integer k

Example:
 
LIB "spectrum.lib";
ring r=0,(x,y),ds;
list s=spectrumnd(x5+x2y2+y5);
s;
==> [1]:
==>    11
==> [2]:
==>    6
==> [3]:
==>    7
==> [4]:
==>    1,7,9,1,11,13,3
==> [5]:
==>    2,10,10,1,10,10,2
==> [6]:
==>    1,2,2,1,2,2,1
spmul(s,2);
==> [1]:
==>    22
==> [2]:
==>    12
==> [3]:
==>    7
==> [4]:
==>    1,7,9,1,11,13,3
==> [5]:
==>    2,10,10,1,10,10,2
==> [6]:
==>    2,4,4,2,4,4,2

Top Back: spadd Forward: Invariant theory FastBack: spcurve_lib FastForward: Invariant theory Up: spectrum_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 2-0-0, February 2001, generated by texi2html.