Changeset 4bde6b in git for Singular/LIB/sets.lib


Ignore:
Timestamp:
May 15, 2020, 3:20:00 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a1b40ab8675488c2a4f8e225d9d748ba70340727
Parents:
538e06d0809adf9f75fea000cf70d354bb674ab5
Message:
spelling p1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sets.lib

    r538e06 r4bde6b  
    2020(Set, list, int, bigint, string, intmat, bigintmat, intvec, ring, map, poly, matrix,
    2121ideal, module, vector, resolution) and also works for comparing of int, bigint and
    22 number with each other, similarily for matrix, bigintmat and intmat.
     22number with each other, similarly for matrix, bigintmat and intmat.
    2323
    2424The function size can be used to determine the number of elements.
     
    165165proc isEqualSet(def a, def b)
    166166{
    167   if(size(a)!=size(b)){                //check if the two sets have the same size
     167  if(size(a)!=size(b))             //check if the two sets have the same size
     168  {
    168169   return(0);
    169170  }
    170171  list L = a.elements;
    171   for(int i=1;i<=size(a);i++){                //chek if every element of the first set occurs in
    172     if(!(isElement(L[i],b))){        //the second set
     172  for(int i=1;i<=size(a);i++)      //check if every element of the first set occurs in
     173  {
     174    if(!(isElement(L[i],b)))       //the second set
     175    {
    173176      return(0);
    174177    }
Note: See TracChangeset for help on using the changeset viewer.