tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
14
Task/Set/PARI-GP/set.pari
Normal file
14
Task/Set/PARI-GP/set.pari
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
setsubset(s,t)={
|
||||
for(i=1,#s,
|
||||
if(!setsearch(t,s[i]), return(0))
|
||||
);
|
||||
1
|
||||
};
|
||||
s=Set([1,2,2])
|
||||
t=Set([4,2,4])
|
||||
setsearch(s,1)
|
||||
setunion(s,t)
|
||||
setintersect(s,t)
|
||||
setminus(s,t)
|
||||
setsubset(s,t)
|
||||
s==t
|
||||
Loading…
Add table
Add a link
Reference in a new issue