What is unary? - Definition from WhatIs.com
Part of the Computing fundamentals glossary:

The term unary defines operators in Boolean ( binary ) algebra, trinary algebra, arithmetic, and set theory . Sometimes a unary operation is called a monadic operation or a singulary operation.

In Boolean algebra , there is only one unary operation, known as negation. This operation changes the value of the bit (binary digit) from 0 to 1 or from 1 to 0.

In trinary algebra, which involves three-level logic with states that can be represented by the numbers -1, 0, and 1, there are five unary operators. They are called invert, rotate-up, rotate-down, shift-up, and shift-down. The actions performed by these operators are denoted in the following table.

Input Invert Rotate-up Rotate-down Shift-up Shift-down
-1 1 1 -1
1 -1 1 -1
1 -1 -1 1

In common arithmetic, the unary operators are negation, the reciprocal, and the absolute value. Negation involves reversing the sign of a number. For example, the negation of 4 is -4, and the negation of -23 is 23. The reciprocal involves dividing 1 by the number. Thus, the reciprocal of 4 is 1/4, and the reciprocal of -23 is -1/23. The absolute value involves reversing the sign of a number if it is negative, and leaving the number unchanged if it is 0 or positive. Thus, the absolute value of 4 is 4, and the absolute value of -23 is 23.

In set theory, there is one unary operator, called complementation. Given a set S that is a subset of some universal set U , the complement of S , written S' , is the set containing all elements of U that are not in S .

This was last updated in October 2007
Posted by: Margaret Rouse

Related Terms

Definitions

  • virtual reality

    - Virtual reality is an artificial environment that is created with software and presented to the user in such a way that the user suspends belief and accepts it as a real environment. (WhatIs.com)

  • implementation

    - Implementation is the execution of any idea, model, or method; in IT, it refers to the process of setting up new software or hardware after a purchase is made. (SearchCRM.com)

  • terabyte (TB)

    - A terabyte (TB) is a measurement of computer storage capacity that is equal to 1,024 gigabytes (GB). The value is sometimes rounded to 1,000 GB. (SearchStorage.com)

Glossaries

  • Computing fundamentals

    - Terms related to computer fundamentals, including computer hardware definitions and words and phrases about software, operating systems, peripherals and troubleshooting.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question About unaryPowered by ITKnowledgeExchange.com

Get answers from your peers on your most technical challenges

Tech TalkComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.