What this calculator does
Set operations works out union, intersection and differences of two sets of numbers. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.
The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.
The formula
FormulaA∪B = elements in either set; A∩B = elements in both; A−B = in A but not B; A△B = in exactly one set
The inputs explained
| Field | What to enter |
|---|---|
| Set A (comma separated) | A list of numbers, separated by commas or spaces. |
| Set B (comma separated) | A list of numbers, separated by commas or spaces. |