Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Unary function
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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 == 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: : <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>. 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. == See also == * [[Arity]] * [[Binary function]] * [[Binary operation]] * [[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}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Asbox
(
edit
)
Template:Authority control
(
edit
)
Template:Code
(
edit
)
Template:Math-stub
(
edit
)
Template:Maths-stub
(
edit
)
Template:Multiple issues
(
edit
)
Template:Short description
(
edit
)