In logic and mathematics, an operation ω is a function of the form ω : X1 × … × Xk → Y. The sets Xj are the called the domains of the operation, the set Y is called the codomain of the operation, and the fixed non-negative integer k is called the arity of the operation. An operation of arity zero, called a nullary operation, is simply an element of the codomain Y. Logic, from Classical Greek λÏÎ³Î¿Ï (logos), originally meaning the word, or what is spoken, (but coming to mean thought or reason) is most often said to be the study of criteria for the evaluation of arguments, although the exact definition of logic is a matter of controversy among philosophers. ... Euclid, detail from The School of Athens by Raphael. ... Partial plot of a function f. ... In mathematics and computer programming the arity of a function or an operator is the number of arguments or operands it takes (arity is sometimes referred to as valency, although that actually refers to another meaning of valency in mathematics). ...
An operation of arity k is called a k-ary operation. Thus a k-ary operation is a (k+1)-ary relation that is functional on its first k domains. Elements of the functional domains are called arguments. Elements of the codomain are called values. In mathematics, a finitary relation is defined by one of the formal definitions given below. ...
An operation is often called an operator, though other users of the term may reserve it for more specialized uses. At any rate, the arguments are also called operands or inputs, and the values are also called results or outputs.
The division operator, when one integer is divided by another, results in the whole number of times the second number divides into the first (the result when the quotient is a whole number and a remainder).
Mathematicaloperators used in combination with the assignment operator, "=", can be used to reassign a value to a variable by performing a mathematicaloperation on it, and replacing the original value with the result (e.g., num += 6 is the same as num = num + 6).
When you have a number of operators in the same statement, the order in which the operations are processed is dictated by the rules of precedence, such as division and multiplication being performed before addition and subtraction.