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

Availability: In stock

Regular Price: \$5.00

Special Price: \$4.00

OR Double click on above image to view full picture  ## Quick Overview

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.

Regular Price: \$5.00

Special Price: \$4.00

## Details

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.

## Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.