/* * Program was designed to calculate the power function: * f(x,y) = x^y + y^x where x>0 and y>1 * Then display a set amount of function calls determined by the user. * Made for challenge 6 at CSTutoringCenter.com * * --- CHALLENGE 6 PROGRAM --- * @author dot_Cipher */ import java.util.*; import java.lang.*; import java.math.*; public class PowerFunction { public static BigInteger power(BigInteger b,BigInteger e) { BigInteger pow=BigInteger.ONE; int latestBit=e.bitLength()-1; if(latestBit>0) { for(int i=0;i