Jump to content

Unary function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 83.137.6.244 (talk) at 04:33, 16 March 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A unary function is a function that takes one argument, an N-ary function with arity 1.

Examples

The successor function, denoted , is a unary operator. Its domain and codomain are the natural numbers, its definition is as follows:

In many programming languages such as C, executing this operation is denoted by postfixing to the operand, i.e. the use of is equivalent to executing the assignment .

Many of the elementary functions are unary functions, in particular the trigonometric functions, logarithm with a pre-specified base, exponentiation to a pre-specified power or of a pre-specified base, and hyperbolic functions are unary.

See also

References