pythagorean Proposition - Android java.lang

Android examples for java.lang:Math

Description

pythagorean Proposition

Demo Code


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

Related Tutorials