WordGarden.io

unary

C2
Rare

Pronunciation

UK

    US

      Meanings

      Adjective

      1. having one input, argument, component, or branch in a formal system

      2. expressed in or using base 1, typically with repeated tally-like marks

      Beyond the definition

      Picture something that works with just one thing at a time. That is the heart of unary. In math, logic, and computer science, it describes an operation, operator, or system that involves exactly one item or one input. For example, the minus sign in "-5" is a unary operator because it acts on just one number. In the same way, an operation like "not" in logic also works on a single input.

      The word comes from the Latin unus, meaning "one." You will mostly meet it in technical writing, especially in phrases like "unary operator" or "unary operation." People do not usually use it in everyday talk for general ideas like "single" or "alone"; it belongs more to precise, formal contexts.

      Examples

      1. 1

        Negative numbers

        The calculator reads the minus sign in `-5` as unary, not as subtraction.

      2. 2

        Programming

        In Python, `not` is a unary operator, so it applies to just one value.

        • Patternapply to + value

          work on that value

      3. 3

        Formal logic

        In formal logic, negation is unary, while `and` and `or` are binary.

      See also

      Similar

      • monadic
      • single-argument
      • one-place

      Shades of meaning

      • single-operand

      Contrast

      Do not confuse

      Used with (collocations)

      • unary operator
      • unary operation
      • unary function
      • unary predicate

      Explore

      Forms and spellings

      1 form open this card.

      Main spelling

      • unaryadjective