All Topics  
Binary operation

 

   Email Print
   Bookmark   Link






 

Binary operation



 
 
In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a binary operation is a calculation involving two operands, in other words, an operation whose arity
Arity

In logic, mathematics, and computer science, the arity of a function or operation is the number of arguments or operands that the function takes. The arity of a relation is the number of domains in the corresponding Cartesian product....
 is two. Binary operations can be accomplished using either a binary function
Binary function

In mathematics, a binary function, or function of two variables, is a function which takes two inputs.Precisely stated, a function is binary if there exists Set s such that...
 or binary operator
Operator

In mathematics, an operator is a function which operates on another function. Often, an "operator" is a function which acts on functions to produce other functions ; or it may be a generalization of such a function, as in linear algebra, where some of the terminology reflects the origin of the subject in operations on the functions which ar...
. Binary operations are sometimes called dyadic operations in order to avoid confusion with the binary numeral system
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
. Examples include the familiar arithmetic
Arithmetic

Arithmetic or arithmetics is the oldest and most elementary branch of mathematics, used by almost everyone, for tasks ranging from simple day-to-day counting to advanced science and business calculations....
 operations of addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
, subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
, multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
 and division
Division (mathematics)

In mathematics, especially in elementary arithmetic, division is an arithmetic operation which is the inverse of multiplication.Specifically, if c times b equals a, written:...
.

More precisely, a binary operation on a set S is a binary relation
Binary relation

In mathematics, a binary relation is an arbitrary association of elements within a set or with elements of another set.An example is the "divides" relation between the set of prime numbers P and the set of integers Z, in which every prime p is associated with every integer z that is a divisibility of p, and no othe...
 that maps elements of the Cartesian product
Cartesian product

In mathematics, the Cartesian product is a direct product of sets. The Cartesian product is named after Ren? Descartes, whose formulation of analytic geometry gave rise to this concept....
 S × S to S: If f is not a function, but is instead a partial function
Partial function

In mathematics, a partial function is a binary relation that associates each element of a Set , sometimes called its domain , with at most one element of another set, called its codomain....
, it is called a partial operation.






Discussion
Ask a question about 'Binary operation'
Start a new discussion about 'Binary operation'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a binary operation is a calculation involving two operands, in other words, an operation whose arity
Arity

In logic, mathematics, and computer science, the arity of a function or operation is the number of arguments or operands that the function takes. The arity of a relation is the number of domains in the corresponding Cartesian product....
 is two. Binary operations can be accomplished using either a binary function
Binary function

In mathematics, a binary function, or function of two variables, is a function which takes two inputs.Precisely stated, a function is binary if there exists Set s such that...
 or binary operator
Operator

In mathematics, an operator is a function which operates on another function. Often, an "operator" is a function which acts on functions to produce other functions ; or it may be a generalization of such a function, as in linear algebra, where some of the terminology reflects the origin of the subject in operations on the functions which ar...
. Binary operations are sometimes called dyadic operations in order to avoid confusion with the binary numeral system
Binary numeral system

The binary numeral system, or notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers....
. Examples include the familiar arithmetic
Arithmetic

Arithmetic or arithmetics is the oldest and most elementary branch of mathematics, used by almost everyone, for tasks ranging from simple day-to-day counting to advanced science and business calculations....
 operations of addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
, subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
, multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
 and division
Division (mathematics)

In mathematics, especially in elementary arithmetic, division is an arithmetic operation which is the inverse of multiplication.Specifically, if c times b equals a, written:...
.

More precisely, a binary operation on a set S is a binary relation
Binary relation

In mathematics, a binary relation is an arbitrary association of elements within a set or with elements of another set.An example is the "divides" relation between the set of prime numbers P and the set of integers Z, in which every prime p is associated with every integer z that is a divisibility of p, and no othe...
 that maps elements of the Cartesian product
Cartesian product

In mathematics, the Cartesian product is a direct product of sets. The Cartesian product is named after Ren? Descartes, whose formulation of analytic geometry gave rise to this concept....
 S × S to S: If f is not a function, but is instead a partial function
Partial function

In mathematics, a partial function is a binary relation that associates each element of a Set , sometimes called its domain , with at most one element of another set, called its codomain....
, it is called a partial operation. For instance, division of real numbers is a partial function, because one can't divide by zero
Divide By Zero

Divide By Zero was a United Kingdom video game developer. It was disestablished somewhere in 1996.Divide By Zero is a BBS originally started in 1996 in Columbia SC by Keven and Eric Coots....
: 1/0 and 0/0 are not defined.

Sometimes, especially in computer science
Computer science

Computer science is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems....
, the term is used for any binary function
Binary function

In mathematics, a binary function, or function of two variables, is a function which takes two inputs.Precisely stated, a function is binary if there exists Set s such that...
. That f takes values in the same set S that provides its arguments is the property of closure
Closure (mathematics)

In mathematics, a Set is said to be closed under some operation if the Operation on members of the set produces a member of the set. For example, the real numbers are closed under subtraction, but the natural numbers are not: 3 and 7 are both natural numbers, but the result of 3 − 7 is not....
.

Binary operations are the keystone of algebraic structures studied in abstract algebra
Abstract algebra

Abstract algebra is the subject area of mathematics that studies algebraic structures, such as group , ring , field , module , vector spaces, and algebra over a field....
: they form part of groups
Group (mathematics)

In mathematics, a group is an algebraic structure consisting of a set together with an Binary operation that combines any two of its element to form a third element....
, monoid
Monoid

In abstract algebra, a branch of mathematics, a monoid is an algebraic structure with a single, associative binary operation and an identity element....
s, semigroup
Semigroup

In mathematics, a semigroup is an algebraic structure consisting of a nonempty Set S together with an associative binary operation. In other words, a semigroup is an associative Magma ....
s, rings, and more. Most generally, a magma
Magma (algebra)

In abstract algebra, a magma is a basic kind of algebraic structure. Specifically, a magma consists of a Set M equipped with a single binary operation M × M ? M....
 is a set together with any binary operation defined on it.

Many binary operations of interest in both algebra and formal logic are commutative or associative. Many also have identity element
Identity element

In mathematics, an identity element is a special type of element of a Set with respect to a binary operation on that set. It leaves other elements unchanged when combined with them....
s and inverse element
Inverse element

In mathematics, the idea of inverse element generalises the concepts of additive inverse, in relation to addition, and Multiplicative inverse, in relation to multiplication....
s. Typical examples of binary operations are the addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
 (+) and multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
 (×) of number
Number

A number is a mathematical object used in counting and measurement. A notational symbol which represents a number is called a Numeral system, but in common usage the word number is used for both the abstract object and the symbol, as well as for the numeral for the number....
s and matrices
Matrix (mathematics)

In mathematics, a matrix is a rectangular array of numbers, as shown at the right. In addition to a number of elementary, entrywise operations such as matrix addition a key notion is matrix multiplication....
 as well as composition of functions on a single set.

An example of an operation that is not commutative is subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
 (-). Examples of partial operations that are not commutative include division
Division (mathematics)

In mathematics, especially in elementary arithmetic, division is an arithmetic operation which is the inverse of multiplication.Specifically, if c times b equals a, written:...
 (/), exponentiation
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
(^), and super-exponentiation(??).

Binary operations are often written using infix notation
Infix notation

Infix notation is the common arithmetic and logical formula notation, in which operators are written infix-style between the operands they act on ....
 such as ab, a + b, a · b or (by juxtaposition with no symbol) ab rather than by functional notation of the form f(a, b). Powers are usually also written without operator, but with the second argument as superscript.

Binary operations sometimes use prefix or postfix notation; this dispenses with parentheses. Prefix notation is also called Polish notation
Polish notation

Polish notation, also known as prefix notation, is a form of notation for logic, arithmetic, and algebra. Its distinguishing feature is that it places operators to the left of their operands....
; postfix notation, also called reverse Polish notation
Reverse Polish notation

Reverse Polish notation by analogy with the related Polish notation, a prefix notation introduced in 1920 by the Poland mathematician Jan Lukasiewicz, is a mathematical notation wherein every operator follows all of its operands....
, is probably more often encountered.

Pair and tuple

A binary operation, ab, depends on the ordered pair
Ordered pair

In mathematics, an ordered pair is a collection of two distinguishable objects, one being the first coordinate system , and the other being the second coordinate ....
 (a, b) and so (ab)c (where the parentheses here mean first operate on the ordered pair (a, b) and then operate on the result of that using the ordered pair ((ab), c) depends in general on the ordered pair ((a,b),c). Thus, for the general, non-associative case, binary operations can be represented with binary tree
Binary tree

In computer science, a binary tree is a Tree in which each node has at most two child node. Typically the child nodes are called left and right....
s.

However:
  • If the operation is associative, (ab)c=a(bc), then the value depends only on the tuple
    Tuple

    In mathematics, a tuple is a sequence of a specific number of values, called the components of the tuple. These components can be any kind of mathematical objects, where each component of a tuple is a value of a specified type....
     (a,b,c).
  • If the operation is commutative, ab=ba, then the value depends only on the multiset
    Multiset

    In mathematics, a multiset is a generalization of a Set . A Element of a multiset can have more than one Element , while each member of a set has only one membership....
     .
  • If the operation is both associative and commutative then the value depends only on the multiset
    Multiset

    In mathematics, a multiset is a generalization of a Set . A Element of a multiset can have more than one Element , while each member of a set has only one membership....
     .
  • If the operation is both associative and commutative and idempotent, aa=a, then the value depends only on the set .


External binary operations

An external
External (mathematics)

The term external is useful for describing certain algebraic structures. The term comes from the concept of an Binary_operation#External_binary_operations which is a binary operation that draws from some external set....
 binary operation
is a binary function from K and S to S. This differs from a binary operation in the strict sense in that K need not be S; its elements come from outside.

An example of an external
External (mathematics)

The term external is useful for describing certain algebraic structures. The term comes from the concept of an Binary_operation#External_binary_operations which is a binary operation that draws from some external set....
 binary operation is scalar multiplication
Scalar multiplication

In mathematics, scalar multiplication is one of the basic operations defining a vector space in linear algebra . Note that scalar multiplication is different from scalar product which is an inner product between two vectors....
 in linear algebra
Linear algebra

Linear algebra is the branch of mathematics concerned with the study of Euclidean vectors, vector spaces , linear maps , and system of linear equations....
. Here K is a field
Field (mathematics)

In abstract algebra, a field is an algebraic structure with notions of addition, subtraction, multiplication and division , satisfying certain axioms....
 and S is a vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
 over that field.

An external
External (mathematics)

The term external is useful for describing certain algebraic structures. The term comes from the concept of an Binary_operation#External_binary_operations which is a binary operation that draws from some external set....
 binary operation may alternatively be viewed as an action
Group action

In algebra and geometry, a group action is a way of describing symmetry of objects using group . The essential elements of the object are described by a Set and the symmetries of the object are described by the symmetry group of this set, which consists of bijective transformation of the set....
; K is acting on S.

See also

  • Iterated binary operation
    Iterated binary operation

    In mathematics, an iterated binary operation is an extension of a binary operation on a set S to a function on finite sequences of elements of S through repeated application....
  • Unary operation
    Unary operation

    In mathematics, a unary operation is an operation with only one operand, i.e. an operation with a single input, or in other words, a function of one variable ....
  • Ternary operation
    Ternary operation

    In mathematics, a ternary operation is an n-ary operation with n = 3. A ternary operation on a set A takes any given three elements of A and combines them to form a single element of A....