Formula to calculate exponent Positive - Android java.lang

Android examples for java.lang:Math Formula

Description

Formula to calculate exponent Positive

Demo Code


//package com.java2s;

public class Main {
    private static double result;

    public static double exponent2Positive(double a, double b) {
        result = ((a * a) + (b * b) + (2 * a * b));
        return result;
    }/*w w  w  .j  a  v a 2  s.  c  om*/
}

Related Tutorials