In mathematics, a unary operation is an operation with only one operand (i.e. an operation with a single input). For instance, logical negation is a unary operation on truth values and squaring is a unary operation on the real numbers. Another unary operation is the factorial, n!. A unary operation on the set S is nothing but a function S → S.
Unary operators (called "monadic" in APL) are also used in programming languages. For example, in the C family of languages, the following operators are unary:
Elementary algebra | Programming constructs
Unární operace | Einstellige Verknüpfung | Unaarne tehe | Operación | Operazione unaria | פעולה יונארית | 手術 | Operacija | Unär operator | 运算
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Unary operation".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world