## Description

**Big Java Chapter 8 Programming Exercise P8.13 Numeric Solution**

Consider the following algorithm for computing xn for an integer n. If Â n < 0, xn is 1/xâ€“n. If n is positive and even, then xn = (xn/2)2. If n Â is positive and odd, then xn = xnâ€“1 â‹… x. Implement a static method double intPower(double x, int n) that uses this algorithm. Add it to a class called Numeric.

## Reviews

There are no reviews yet.