Unary function: Difference between revisions

Content deleted Content added
See also: rm overdone inclusion
 
(5 intermediate revisions by 4 users not shown)
Line 1:
{{Short description|Function that takes one argument}}
{{more citations needed|date=August 2012}}
{{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.
 
Line 12 ⟶ 17:
</math>
 
In manysome [[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>.
 
Many of the [[elementary function]]s are unary functions, including the [[trigonometric functions]], [[logarithm]] with a specified base, [[exponentiation]] to a particular power or base, and [[hyperbolic function]]s.
Line 20 ⟶ 25:
* [[Arity]]
* [[Binary function]]
* [[Binary operatoroperation]]
* [[Iterated binary operation]]
* [[Ternary operation]]
* [[Unary operation]]
 
== ReferencesBibliography ==
* [http://www.cs.ucl.ac.uk/staff/W.Langdon/FOGP Foundations of Genetic Programming]