Numbers, Units & Calculators
Set Difference Calculator
Calculate a result with Set Difference from the values you enter. Enter the required values, adjust the options, and review the calculated result.
This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.
Set Difference Calculator returns items in one set that are absent from the other set.
It returns the relative complement of the two sets. The calculation runs in your browser. Processing runs in the browser.
Instructions
- Provide values for this tool.
- Enter two samples.
- Set sample and item delimiters.
- Check item spelling and duplicates.
Example
Input: a,b b,c
Settings: Set Difference Calculator: Sample delimiter: newline; item delimiter: comma.
Result: It returns the relative complement of the two sets.
Limits
- Set Difference Calculator: Delimiter characters split items.
- Set Difference Calculator: It treats input as text.
- Set Difference Calculator: The direction of difference matters.