/* * Program was designed to calculate the exponential function: * f(x) = (4^x + x^3 + x^2 + x - 2^x) / 3^x * Then display the answer of the function call. * Made for challenge 6 at CSTutoringCenter.com * * --- CHALLENGE 7 PROGRAM --- * @author dot_Cipher */ import java.util.*; import java.lang.*; import java.math.*; public class ExponentialFunction { public static BigInteger power(BigInteger b,BigInteger e){ BigInteger pow=BigInteger.ONE; int lastBit=e.bitLength()-1; if(lastBit>0){ for(int i=0;i