Unary function
This article needs additional citations for verification. (August 2012) |
In
unary operator belongs to a subset of unary functions, in that its codomain coincides with its domain
. In contrast, a unary function's domain need not coincide with its range.
Examples
The successor function, denoted , is a unary operator. Its domain and codomain are the natural numbers; its definition is as follows:
In some programming languages such as C, executing this operation is denoted by postfixing ++
to the operand, i.e. the use of n++
is equivalent to executing the assignment .
Many of the
hyperbolic functions
.
See also
- Arity
- Binary function
- Binary operator
- Ternary operation
- Unary operation
References