AI Features

Computing powers of a number

We'll cover the following...

Although most languages have a builtin pow function that computes powers of a number, you can write a similar function recursively, and it can be very efficient. The only hitch is that the exponent has to be an integer.

Suppose you want to compute xnx^n, where xx is any real number and  ...

Ask