In mathematics, an operation is a function which takes zero or more input values (also called "operands" or "arguments") to a well-defined output value. The number of operands is the arity of the operation.
The most commonly studied operations are binary operations (i.e., operations of arity 2), such as addition and multiplication, and unary operations (i.e., operations of arity 1), such as additive inverse and multiplicative inverse. An operation of arity zero, or nullary operation, is a constant. The mixed product is an example of an operation of arity 3, also called ternary operation.
Generally, the arity is taken to be finite. However, infinitary operations are sometimes considered, in which case the "usual" operations of finite arity are called finitary operations.
A partial operation is defined similarly to an operation, but with a partial function in place of a function.
Types of operation
There are two common types of operations: unary and binary. Unary operations involve only one value, such as negation and trigonometric functions. Binary operations, on the other hand, take two values, and include addition, subtraction, multiplication, division, and exponentiation.
Operations can involve mathematical objects other than numbers. The logical values true and false can be combined using logic operations, such as and, or, and not. Vectors can be added and subtracted. Rotations can be combined using the function composition operation, performing the first rotation and then the second. Operations on sets include the binary operations union and intersection and the unary operation of complementation. Operations on functions include composition and convolution.
Operations may not be defined for every possible value of its domain. For example, in the real numbers one cannot divide by zero or take square roots of negative numbers. The values for which an operation is defined form a set called its domain of definition or active domain. The set which contains the values produced is called the codomain, but the set of actual values attained by the operation is its codomain of definition, active codomain, image or range. For example, in the real numbers, the squaring operation only produces non-negative numbers; the codomain is the set of real numbers, but the range is the non-negative numbers.
Operations can involve dissimilar objects: a vector can be multiplied by a scalar to form another vector (an operation known as scalar multiplication), and the inner product operation on two vectors produces a quantity that is scalar. An operation may or may not have certain properties, for example it may be associative, commutative, anticommutative, idempotent, and so on.
The values combined are called operands, arguments, or inputs, and the value produced is called the value, result, or output. Operations can have fewer or more than two inputs (including the case of zero input and infinitely many inputs).
An operator is similar to an operation in that it refers to the symbol or the process used to denote the operation, hence their point of view is different. For instance, one often speaks of "the operation of addition" or "the addition operation", when focusing on the operands and result, but one switches to "addition operator" (rarely "operator of addition"), when focusing on the process, or from the more symbolic viewpoint, the function +: X × X → X.
An n-ary operation ω from X1, …, Xn to Y is a function ω: X1 × … × Xn → Y. The set X1 × … × Xn is called the domain of the operation, the set Y is called the codomain of the operation, and the fixed non-negative integer n (the number of operands) is called the arity of the operation. Thus a unary operation has arity one, and a binary operation has arity two. An operation of arity zero, called a nullary operation, is simply an element of the codomain Y. An n-ary operation can also be viewed as an (n + 1)-ary relation that is total on its n input domains and unique on its output domain.
An n-ary partial operation ω from X1, …, Xn to Y is a partial function ω: X1 × … × Xn → Y. An n-ary partial operation can also be viewed as an (n + 1)-ary relation that is unique on its output domain.
The above describes what is usually called a finitary operation, referring to the finite number of operands (the value n). There are obvious extensions where the arity is taken to be an infinite ordinal or cardinal, or even an arbitrary set indexing the operands.
Often, the use of the term operation implies that the domain of the function includes a power of the codomain (i.e. the Cartesian product of one or more copies of the codomain), although this is by no means universal, as in the case of dot product, where vectors are multiplied and result in a scalar. An n-ary operation ω: Xn → X is called an internal operation. An n-ary operation ω: Xi × S × Xn − i − 1 → X where 0 ≤ i < n is called an external operation by the scalar set or operator set S. In particular for a binary operation, ω: S × X → X is called a left-external operation by S, and ω: X × S → X is called a right-external operation by S. An example of an internal operation is vector addition, where two vectors are added and result in a vector. An example of an external operation is scalar multiplication, where a vector is multiplied by a scalar and result in a vector.
- "Algebraic operation - Encyclopedia of Mathematics". https://www.encyclopediaofmath.org/index.php/Algebraic_operation.
- DeMeo, William (August 26, 2010). "Universal Algebra Notes". http://www.math.hawaii.edu/~williamdemeo/latticetheory/Glossary.pdf.
- Weisstein, Eric W.. "Unary Operation" (in en). https://mathworld.wolfram.com/UnaryOperation.html.
- Weisstein, Eric W.. "Binary Operation" (in en). https://mathworld.wolfram.com/BinaryOperation.html.
- Weisstein, Eric W.. "Vector" (in en). https://mathworld.wolfram.com/Vector.html. "Vectors can be added together (vector addition), subtracted (vector subtraction) ..."
- Weisstein, Eric W.. "Union" (in en). https://mathworld.wolfram.com/Union.html.
- Weisstein, Eric W.. "Intersection" (in en). https://mathworld.wolfram.com/Intersection.html.
- Weisstein, Eric W.. "Complementation" (in en). https://mathworld.wolfram.com/Complementation.html.
- Weisstein, Eric W.. "Composition" (in en). https://mathworld.wolfram.com/Composition.html.
- Weisstein, Eric W.. "Convolution" (in en). https://mathworld.wolfram.com/Convolution.html.
- Weisstein, Eric W.. "Division by Zero" (in en). https://mathworld.wolfram.com/DivisionbyZero.html.
- Weisstein, Eric W.. "Domain" (in en). https://mathworld.wolfram.com/Domain.html.
- Weisstein, Eric W.. "Scalar Multiplication" (in en). https://mathworld.wolfram.com/ScalarMultiplication.html.
- Jain, P. K.; Ahmad, Khalil; Ahuja, Om P. (1995) (in en). Functional Analysis. New Age International. ISBN 978-81-224-0801-0. https://books.google.com/books?id=yZ68h97pnAkC&pg=PA203.
- Weisstein, Eric W.. "Inner Product" (in en). https://mathworld.wolfram.com/InnerProduct.html.
- Burris, S. N.; Sankappanavar, H. P. (1981). "Chapter II, Definition 1.1". A Course in Universal Algebra. Springer. http://www.math.uwaterloo.ca/~snburris/htdocs/ualg.html.
Original source: https://en.wikipedia.org/wiki/Operation (mathematics). Read more