Unary function

From testwiki
Revision as of 17:54, 26 December 2024 by 78.190.160.189 (talk) (Binary operator turned into Binary operation in See also, Iterated binary operation added to See also.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Multiple issues 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 Template:Code to the operand, i.e. the use of Template:Code 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

References

Template:Authority control


Template:Maths-stub