DOCUMENTATION CENTER SEARCH
Mathematica
>
Rearranging & Restructuring Lists
>
Built-in
Mathematica
Symbol
Lists as Sets
Tutorials »
|
Intersection
Union
Take
Select
See Also »
|
Discrete & Integer Data
Discrete Mathematics
Math & Counting Operations on Lists
Rearranging & Restructuring Lists
More About »
Complement
Complement
[
e
all
,
e
1
,
e
2
,
...
]
gives the elements in
e
all
which are not in any of the
e
i
.
MORE INFORMATION
The list returned by
Complement
is sorted into standard order.
Complement
[
e
all
,
e
1
,
...
,
SameTest
->
test
]
applies
test
to each pair of elements in
eall
and the
e
i
to determine whether they should be considered the same.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Find which elements in the first list are not in any of the subsequent lists:
In[1]:=
Out[1]=
Generalizations & Extensions
(1)
Applications
(4)
SEE ALSO
Intersection
Union
Take
Select
TUTORIALS
Lists as Sets
MORE ABOUT
Discrete & Integer Data
Discrete Mathematics
Math & Counting Operations on Lists
Rearranging & Restructuring Lists
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1 | Last modified in 3
© 2008 Wolfram Research, Inc.