Java Geometric Mean geometricMean(double a, double b)

Here you can find the source of geometricMean(double a, double b)

Description

geometric Mean

License

Open Source License

Parameter

Parameter Description
a a parameter
b a parameter

Return

the geometric mean

Declaration

public static double geometricMean(double a, double b) 

Method Source Code

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

Related

  1. geometricMean(double... values)
  2. geometricMean(double[] nums)
  3. geometricMean(double[] values)
  4. geometricMean(final double[] values)