Content deleted Content added
No edit summary |
|||
(38 intermediate revisions by 27 users not shown) | |||
Line 1:
{{Short description|Function that takes one argument}}
{{Multiple issues|
{{one source |date=May 2024}}
{{No footnotes|date=December 2024}}
}}
<!-- {{more citations needed|date=August 2012}} -->
In [[mathematics]], a '''unary function''' is a [[function (mathematics)|function]] that takes one [[Arity|argument]]. A [[unary operator]] belongs to a subset of unary functions, in that its [[codomain]] coincides with its [[___domain of a function|___domain]]. In contrast, a unary function's ___domain need not coincide with its range.
== Examples ==
Many of the [[elementary function]]s are unary functions, in particular the [[trigonometric functions]] and [[hyperbolic function]] are unary.▼
The [[successor function]], denoted <math>\operatorname{succ}</math>, is a unary operator. Its ___domain and codomain are the [[natural number]]s; its definition is as follows:
==See also==▼
: <math display="block">
\begin{align}
\operatorname{succ} : \quad & \mathbb{N} \rightarrow \mathbb{N} \\
& n \mapsto (n + 1)
\end{align}
</math>
In some [[programming language]]s such as [[C (programming language)|C]], executing this operation is denoted by [[Reverse Polish notation|postfixing]] {{code|++}} to the operand, i.e. the use of {{code|n++}} is equivalent to executing the assignment <math> n:= \operatorname{succ}(n)</math>.
*[[Arity]]▼
*[[Binary function]]▼
*[[Binary operator]]▼
*[[Ternary operation]]▼
*[[Unary operation]]▼
▲Many of the [[elementary function]]s are unary functions,
▲== See also ==
▲* [[Arity]]
▲* [[Binary function]]
* [[Iterated binary operation]]
▲* [[Ternary operation]]
▲* [[Unary operation]]
== Bibliography ==
* [http://www.cs.ucl.ac.uk/staff/W.Langdon/FOGP Foundations of Genetic Programming]
{{Authority control}}
[[Category:Functions and mappings]]
[[Category:Types of functions]]
[[Category:Unary operations|*]]
{{maths-stub}}▼
▲{{maths-stub}}
|