Function
A relation that assigns each input exactly one output
A function is a relation between sets and such that for every there exists a unique with ; we write this as and denote the function by .
Remarks
The set is called the domain and the set the codomain. Functions allow you to form images and preimages of subsets and to build new functions via composition.
Examples
- The squaring map given by is a function on the natural numbers.
- If is a subset of a set , the inclusion map defined by is a function.