factor Of Power - Java java.lang

Java examples for java.lang:double

Description

factor Of Power

Demo Code


//package com.java2s;

public class Main {
    public static double factorOfPower(double y, double x, int exp) {
        return multiply(y, Power(x, exp));
    }//from   ww w.  ja v  a2 s . c o m

    public static double multiply(double num1, double num2) {
        return num1 * num2;
    }

    public static double Power(double base, int exponent) {
        return Math.pow(base, exponent);
    }
}

Related Tutorials