Here you can find the source of geometricMean(double a, double b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
public static double geometricMean(double a, double b)
//package com.java2s; //License from project: Open Source License public class Main { /**/*www . j a v a2s .com*/ * @param a * @param b * @return the geometric mean */ public static double geometricMean(double a, double b) { return Math.pow(a * b, 0.5); } }