Intersection calculator, A∩B calculator

Set 1 (comma separated)
Set 2 (comma separated)
Intersection

Classification of sets:

Union: A set with elements belonging to A or B as its elements is called the union of A and B, denoted as A∪B (or B∪A), read as "A and B" (or "B and A"), that is, A∪B={x|x∈A, or x∈B}

For example, the full set U={1,2,3,4,5} A={1,3,5} B={1,2,5}.

The two sets contain the five elements 1,2,3,4,5, regardless of the number of occurrences of the elements, as long as the elements appear in both sets. Then A∪B={1,2,3,5}. The shaded part in the figure is A∩B.

Intersection: A set with elements belonging to both A and B is called the intersection (set) of A and B, denoted as A∩B (or B∩A), and read as "A intersects B" (or "B intersects A"), that is, A∩B={x|x∈A, and x∈B}

For example, the full set U={1,2,3,4,5} A={1,3,5} B={1,2,5}. Then because both A and B have 1,5, A∩B={1,5}.

Difference: A set with elements belonging to A but not B is called the difference (set) of A and B