|
|
|
|
|
by adrian_b
1419 days ago
|
|
If it is said that "Those are the first, second, and third operations: addition, multiplication, and exponentiation", then one should not forget that according to this numbering there is a "zeroth" operation: adding 1 to a number (incrementation). Addition is derived from adding 1 to a number in the same way as multiplication is derived from adding a number to zero (if instead of starting with zero the operation is started from an arbitrary number, like in the derivation of addition, then the multiply-add operation is obtained, which is implemented frequently as a single operation in hardware), or exponentiation from the multiplication of 1 with a number. So the sequence of operations is: adding 1 to a number, addition, multiplication, exponentiation, ..., where any operation but the first in this sequence can be implemented as a loop using the previous operation. |
|
As I was reading this, I was visualizing it as geometry. - Incrementation as a line, where each "step" moves you along that line - Addition as a 2d graph, where each point along the x axis increments by 1, and each point along the y axis indicates "how many times" - Multiplication as a 3d graph, in the same pattern - Exponentiation - it fell apart because I couldn't visualize it anymore.
Not particularly insightful, I guess, but I found it interesting that it seemed "automatic" to me to view it this way.