Set Theory and Venn Diagram Calculator
Evaluates set expressions on your own sets, lists the members, shades the matching Venn regions and fills in two-set counting problems from partial totals.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Choose two or three sets
Press Two sets or Three sets.
- 2Enter the sets
Type U (for example 1-12) and the elements of A, B and C.
- 3Write an expression
Type it or use the symbol buttons, or press a Try button.
- 4Read the result
The members, their number and the set-builder form are shown, and the diagram is shaded.
- 5Solve counting problems
In Counting problems enter the known totals to fill in the rest.
- 6Practise
Practice asks you to list sets and solve two-set word problems.
Sobre aquesta eina
Set notation is compact, and a Venn diagram makes it concrete. This calculator works with two or three sets inside a universal set U. Type the elements of U and of each set (a range such as 1-20 works for U), then any expression using union ∪, intersection ∩, complement ', difference − and symmetric difference Δ, with brackets. The tool lists the members of the result, counts them, writes it in set-builder form and shades exactly those regions of the Venn diagram, with the elements written in each region. A table gives the common results at a glance. The counting tab solves the classic two-set word problem: give any of n(U), n(A), n(B), n(A ∩ B), n(A ∪ B) and the number in neither, and it fills in the rest using n(A ∪ B) = n(A) + n(B) - n(A ∩ B), drawing the numbers in the diagram. Practice asks you to list sets and to solve counting problems.
The operations
A ∪ B (union) contains everything in A or B or both. A ∩ B (intersection) contains what is in both. A' (complement) contains everything in U that is not in A. A − B (difference) contains what is in A but not in B, which is A ∩ B'. A Δ B (symmetric difference) contains what is in exactly one of the two sets.
Reading a Venn diagram
Two overlapping circles split U into four regions: A only, B only, both, and neither. Three circles make eight regions. Shading the regions that satisfy an expression is the visual version of evaluating it, and comparing shadings is a quick way to see that two expressions are equal, as in De Morgan's law (A ∪ B)' = A' ∩ B'.
Counting problems
The addition rule n(A ∪ B) = n(A) + n(B) - n(A ∩ B) stops the overlap being counted twice. Start filling a Venn diagram from the middle: put n(A ∩ B) in the overlap first, then subtract to get A only and B only, and finally the number outside both.
Worked example
In a group of 50, 30 study art, 25 study biology and 12 study both. Art only is 30 - 12 = 18, biology only is 25 - 12 = 13, at least one is 30 + 25 - 12 = 43 and neither is 50 - 43 = 7. With U = {1, …, 12}, A the even numbers and B the multiples of 3, A ∩ B' = {2, 4, 8, 10}.
Limits
Up to three sets are supported, and elements are compared as text, so 2 and 2.0 are different elements. The counting solver covers two sets; three-set counting needs the regions entered as sets. Infinite sets and set-builder input are not supported. It is a study aid.
Exemple resolt
50 students, 30 art, 25 biology, 12 both: art only 18, biology only 13, at least one 43, neither 7.
En resum
- Categoria: Matemàtiques i ciència
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: OpenStax Contemporary Mathematics, chapter 1: sets, Venn diagrams and set operations
Preguntes freqüents
How do I type the symbols?
Use the buttons, or type u or | for union, n or & for intersection, ' for complement, - for difference and Δ or xor for symmetric difference.
What is the complement of a set?
Everything in the universal set U that is not in the set, written A'.
Why subtract n(A ∩ B) in the addition rule?
Elements in both sets are counted once in n(A) and again in n(B), so one copy must be removed.
Can I use three sets?
Yes. Press Three sets; the diagram then has eight regions and expressions can use C.
What does the shading show?
The regions whose elements belong to your expression. The members are also listed above the diagram.
Can I enter numbers only for a word problem?
Yes. In Counting problems enter the known totals and leave the others empty.
