Top
Back: D.5.4.16 spadd
Forward: D.5.4.18 spmul
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.5.4 gaussman_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.5.4.17 spsub

Procedure from library gaussman.lib (see gaussman_lib).

Usage:

spsub(sp1,sp2); list sp1, list sp2

Return:

list sp; difference of spectra sp1 and sp2

Example:

 
LIB "gaussman.lib";
ring R=0,(x,y),ds;
list sp1=list(ideal(-1/2,-3/10,-1/10,0,1/10,3/10,1/2),intvec(1,2,2,1,2,2,1));
spprint(sp1);
→ (-1/2,1),(-3/10,2),(-1/10,2),(0,1),(1/10,2),(3/10,2),(1/2,1)
list sp2=list(ideal(-1/6,1/6),intvec(1,1));
spprint(sp2);
→ (-1/6,1),(1/6,1)
spprint(spsub(sp1,sp2));
→ (-1/2,1),(-3/10,2),(-1/6,-1),(-1/10,2),(0,1),(1/10,2),(1/6,-1),(3/10,2),(\
   1/2,1)

Top Back: D.5.4.16 spadd Forward: D.5.4.18 spmul FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.5.4 gaussman_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.