Algorithm to calculate powers

885 Views Asked by At

Is it possible to write an algorithm that uses only multiplication and addition to calculate $a^b$ where both a and b are real numbers?