Android examples for java.lang:Math Formula
Formula to calculate pythagorean Theorem
//package com.java2s; public class Main { private static double result; public static double pythagoreanTheorem(double a, double b) { result = (Math.sqrt(a * a + b * b)); return result; }/*from ww w . j av a2s . c om*/ }