What is the symmetric difference of sets A and B?
#A=[1,4,9,10,15] and B=[2,4,7,10]#
Thanks
Thanks
1 Answer
See below.
Explanation:
The symmetric difference of two sets A and B, is the set that contains the elements of A and the elements of B, but not the elements of their intersection.
The notation used to represent this can vary, between:
Our sets are:
The intersection is:
We can view this as subtracting
Note the use of
This is really saying that the symmetric difference of A and B is the relative compliment of their intersection. i.e. everything in
The Venn diagram below shows the symmetric difference as the shaded area:
The reasoning of the relative compliment can be found here