Android examples for java.lang:Math Formula
Formula to calculate exponent Positive
//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*/ }