Android examples for java.lang:Math
pythagorean Proposition
//package com.java2s; public class Main { public static final double pythagoreanProposition(double value1, double value2) { return Math.sqrt((value1 * value1) + (value2 * value2)); }//w w w. j a v a 2 s. c o m }