It can be found by multiplying all the numbers in the given data set and take the nth root for the obtained result. Public static double geometricMeandouble data double sum data0. The geometric mean of n numbers is the nth root of the product of the numbers.
Therefore the formula to calculate the mean or the average is.
This is the geometric mean when there are only two numbers. Therefore the formula to calculate the mean or the average is. Find Harmonic mean using Arithmetic mean and Geometric mean. Write a function to compute the arithmetic-geometric mean of two numbers.