A function is a relation
such that
. In this notation,
is called the domain, and
is called the range. In plain English,
it means that an element in the domain is related to at most one value in
the range.
As an example, let us consider
, and
.
is a function. However,
is not a function.
In some definitions of a function, it is also required that
. This means that every elements
in
maps to a value in
. Our example above satisfies this
requirement. We will use this definitions (with the extra requirement)
in this module.