power Algorithm

The multiplication of whole numbers may be thought as a repeated addition; that is, the multiplication of two numbers is equivalent to adding as many copy of one of them, the multiplicand, as the value of the other one, the multiplier. The multiplication of integers (including negative numbers), rational numbers (fractions) and real numbers is specify by a systematic generalization of this basic definition.

power source code, pseudocode and analysis