Discrete Math Calculator

Solve discrete mathematics problems including set operations, combinatorics, logic, and number theory. Enter sets as comma-separated values like {1, 2, 3} or 1, 2, 3.

Discrete Mathematics Guide

What is Discrete Math?

Discrete mathematics deals with countable, distinct objects rather than continuous quantities. It includes set theory, combinatorics, graph theory, logic, and number theory.

Set Operations

  • Union (∪): All elements in either set A or set B
  • Intersection (∩): Elements common to both sets
  • Difference (−): Elements in A but not in B
  • Symmetric Difference (△): Elements in A or B but not both

Combinatorics Formulas

  • Combinations: C(n,r) = n! / (r!(n-r)!) - Order doesn't matter
  • Permutations: P(n,r) = n! / (n-r)! - Order matters