Android examples for java.lang:Math Formula
Formula to calculate exponent Negative
//package com.java2s; public class Main { private static double result; public static double exponent2Negative(double a, double b) { result = ((a * a) + (b * b) - (2 * a * b)); return result; }//from ww w . java 2 s. c o m }