Basic Examples (2)
Basic Examples
(2)
The common element 3 is removed from the of the sets:
In[96]:=
Out[96]=
{1,2,4,5,6}
———
Define three lists:
In[52]:=
a={1,2,3,4};b={2,3,4,5};c={3,4,5,6};
Here is their :
In[55]:=
Union[a,b,c]
Out[55]=
{1,2,3,4,5,6}
Here is their :
In[56]:=
Intersection[a,b,c]
Out[56]=
{3,4}
Using those, you can define their symmetric difference:
In[57]:=
Complement[%%,%]
Out[57]=
{1,2,5,6}
SymmetricDifference
In[58]:=
Out[58]=
{1,2,5,6}
Possible Issues (3)
Possible Issues
(3)