Formula to calculate exponent Negative - Android java.lang

Android examples for java.lang:Math Formula

Description

Formula to calculate exponent Negative

Demo Code


//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
}

Related Tutorials