Ordered Pairs

Prerequisites

Introduction to Sets Show

Ordered Pairs

Introduction

  • An ordered pair is simply a pair of objects, e.g. (a, b)
  • In an ordered pair, the order matters:
    LaTeX:(\mathbf{a}, \mathbf{b})\neq (\mathbf{b}, \mathbf{a}) 
    \text{ unless } 
    \mathbf{a} = \mathbf{b}
  • This contrasts with the unordered pair, in which (a, b) = (b, a) regardless of the values of a and b.
  • An ordered pair is not a type of set. An ordered pair may contain duplicate elements, and its order is important.

Notation

Ordered Pairs are represented by a comma separated pair of elements wrapped in brackets:
a = (1, 2)
LaTeX:\mathbf{a} = (1, 2)

code (Python)

a = (1, 2)
print(a)