|
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
|
|