# Associative property

In mathematics, the associative property is a property of some binary operations. In propositional logic, associativity is a valid rule of replacement for expressions in logical proofs. Within an expression containing two or more occurrences in a row of the same associative operator, the order in which the operations are performed does not matter as long as the sequence of the operands is not changed. That is, (after rewriting the expression with parentheses and in infix notation if necessary) rearranging the parentheses in such an expression will not change its value. Consider the following equations: ( 2 + 3 ) + 4 = 2 + ( 3 + 4 ) = 9 {\displaystyle (2+3)+4=2+(3+4)=9\,} 2 × ( 3 × 4 ) = ( 2 × 3 ) × 4 = 24. {\displaystyle 2\times (3\times 4)=(2\times 3)\times 4=24.} Even though the parentheses were rearranged on each line, the values of the expressions were not altered. Since this holds true when performing addition and multiplication on any real numbers, it can be said that "addition and multiplication of real numbers are associative operations". Associativity is not the same as commutativity, which addresses whether or not the order of two operands changes the result. For example, the order does not matter in the multiplication of real numbers, that is, a × b = b × a, so we say that the multiplication of real numbers is a commutative operation. Associative operations are abundant in mathematics; in fact, many algebraic structures (such as semigroups and categories) explicitly require their binary operations to be associative. However, many important and interesting operations are non-associative; some examples include subtraction, exponentiation, and the vector cross product. In contrast to the theoretical properties of real numbers, the addition of floating point numbers in computer science is not associative, and the choice of how to associate an expression can have a significant effect on rounding error.

## Words

This table shows the example usage of word lists for keywords extraction from the text above.

Word | Word Frequency | Number of Articles | Relevance |
---|---|---|---|

associative | 8 | 439 | 0.255 |

multiplication | 5 | 830 | 0.149 |

associativity | 3 | 50 | 0.118 |

numbers | 6 | 22912 | 0.111 |

operations | 6 | 39364 | 0.1 |