Unary function

Short description: Function that takes one argument

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)

This article relies largely or entirely on a single source. Please help improve this article by introducing citations to additional sources.
Find sources: "Unary function" – news · newspapers · books · scholar · JSTOR (May 2024)

|

This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this article by introducing more precise citations. (December 2024) (Learn how and when to remove this template message)

|

(Learn how and when to remove this template message)

In mathematics, a unary function is a function that takes one argument. A 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 succ, is a unary operator. Its domain and codomain are the natural numbers; its definition is as follows:

succ⁡:ℕ->ℕn↦(n+1)

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 n:=succ⁡(n).

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

## See also

* Arity
* Binary function
* Binary operation
* Iterated binary operation
* Ternary operation
* Unary operation

## Bibliography

* Foundations of Genetic Programming

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Unary function. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Unary_function&oldid=3982891"