Package com.zybooks.dsaj.recursion
Class Power
java.lang.Object
com.zybooks.dsaj.recursion.Power
Demonstration of the more efficient method for computing the power function.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Power
public Power()
-
-
Method Details
-
power
public static double power(double x, int n) Computes the value of x raised to the nth power, for nonnegative integer n. -
main
-