Top
Back: set
Forward: intersectionSet
FastBack:
FastForward:
Up: sets_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.14.8.2 union

Procedure from library sets.lib (see sets_lib).

Usage:
union(N,M) or N+M; N,M sets

Return:
Set, the union of the sets N and M

Example:
 
LIB "sets.lib";
list l =1,2,3;
list j =2,3,4;
Set N=l;
Set M=j;
N;
==> {3; 2; 1}
==> Set with 3 elements
==> 
M;
==> {4; 3; 2}
==> Set with 3 elements
==> 
N+M;
==> {1; 4; 3; 2}
==> Set with 4 elements
==> 


Top Back: set Forward: intersectionSet FastBack: FastForward: Up: sets_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.