Function
A function assigns to each element of one set
precisely one element of a second set
.
The functions most commonly encountered in elementary mathematics are real functions of real variables. For such functions, the domain and codomain are sets of real numbers.
Functions are usually defined by a formula for in terms of
For example, the formula
defines the ‘squaring function’ that maps each real number
to its square