Top
Back: memberpos
Forward: pdivi
FastBack: random_lib
FastForward: ring_lib
Up: redcgs_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.7.3 subset

Procedure from library redcgs.lib (see redcgs_lib).

Usage:
subset(J,K);
(J,K) expected (ideal,ideal)
or (list, list)

Return:
1 if all the elements of J are in K, 0 if not.

Example:
 
LIB "redcgs.lib";
list J=list(7,3,2);
list K=list(1,2,3,5,7,8);
subset(J,K);
==> 1


Top Back: memberpos Forward: pdivi FastBack: random_lib FastForward: ring_lib Up: redcgs_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.