| Version 2 |
Version 1 |
| {\em Addition} is a mathematical operation in which two or more numbers are added up. The numbers may be real, imaginary or complex. Two examples: 2 + 2 = 4; $4 + \pi \approx 7.14159$. In the realm of real numbers, adding up positive numbers yields a result that is greater than any of the summands. |
{\em Addition} is a mathematical operation in which two or more numbers are added up. The numbers may be real, imaginary or complex. Two examples: 2 + 2 = 4; $4 + \pi \approx 7.14159$. In the realm of real numbers, adding up positive numbers yields a result that is greater than any of the summands. |
|
|
| The usual operator is the cross with its four arms of equal length pointing north, east, west and south: +. This operator is used in standard infix notation as well as in Polish notation and reverse Polish notation. Regardless of the order of the operands, addition is commutative: $x + y + z = x + z + y = y + x + z,$ etc. |
The usual operator is the cross with its four arms of equal length pointing north, east, west and south: +. This operator is used in standard infix notation as well as in Polish notation and reverse Polish notation. Regardless of the order of the operands, addition is commutative: $x + y + z = x + z + y = y + x + z,$ etc. |
|
|
| The iterative operator is the Greek capital letter sigma, e.g., $$\sum_{i = 1}^n i^3.$$ Because of the aforementioned commutativity, it doesn't matter if the iterator is started at the smallest value or the largest value. |
The iterative operator is the Greek capital letter sigma, e.g., $$\sum_{i = 1}^n i^3.$$ Because of the aforementioned commutativity, it doesn't matter if the iterator is started at the smallest value or the largest value. |
|
|
| Besides the possibility of overflow, addition presents no problems for fixed point arithmetic provided the operands are representable in fixed point to begin with. In floating point there exists the possibility of loss of precision (if for example we were to add up several different irrational numbers). |
Besides the possibility of overflow, addition presents no problems for fixed point arithmetic provided the operands are representable in fixed point to begin with. In floating point there exists the possibility of loss of precision (if for example we were to add up several different irrational numbers). |