What Is a Symmetric Difference Calculator?
The symmetric difference calculator computes the symmetric difference of two sets (A △ B), which is the union of the elements in A but not in B and the elements in B but not in A. For example, the symmetric difference of set A = {1, 2, 3, 4} and set B = {3, 4, 5, 6} is {1, 2, 5, 6}.
How to Use the Symmetric Difference Calculator?
- Enter the elements of the first set in the "Set A" input box, separating elements with commas, spaces, or Chinese commas.
- Enter the elements of the second set in the "Set B" input box.
- Click the "Calculate Symmetric Difference" button, or press Enter on your keyboard.
- The result is shown in the "Symmetric Difference (A △ B)" box.
- Click "Example" to generate random sample data, "Clear" to reset all inputs and results, or "Copy" to copy the result to the clipboard.
Usage Example
Input:
- Set A: 1, 2, 3, 4
- Set B: 3, 4, 5, 6
Result: symmetric difference (A △ B): 1, 2, 5, 6