Function as a special case of relation
In mathematics, a relation is a set of ordered pairs that relate objects in some way. A function is a special type of relation where each input (also called the domain) has exactly one output (also called the range). More formally, a function f is a relation from a set A to a set B,…