Harmonic Mean

DOWNLOAD Mathematica Notebook

The harmonic mean H(x_1,...,x_n) of n numbers x_i (where i=1, ..., n) is the number H defined by

 1/H=1/nsum_(i=1)^n1/(x_i).
(1)

The harmonic mean of a list of numbers may be computed in the Wolfram Language using HarmonicMean[list].

The special cases of n=2 and n=3 are therefore given by

H(x_1,x_2)=(2x_1x_2)/(x_1+x_2)
(2)
H(x_1,x_2,x_3)=(3x_1x_2x_3)/(x_1x_2+x_1x_3+x_2x_3),
(3)

and so on.

The harmonic means of the integers from 1 to n for n=1, 2, ... are 1, 4/3, 18/11, 48/25, 300/137, 120/49, 980/363, ... (OEIS A102928 and A001008).

For n=2, the harmonic mean is related to the arithmetic mean A and geometric mean G by

 H=(G^2)/A
(4)

(Havil 2003, p. 120).

The harmonic mean is the special case M_(-1) of the power mean and is one of the Pythagorean means. In older literature, it is sometimes called the subcontrary mean.

The volume-to-surface area ratio for a cylindrical container with height h and radius r and the mean curvature of a general surface are related to the harmonic mean.

Hoehn and Niven (1985) show that

 H(a_1+c,a_2+c,...,a_n+c)>c+H(a_1,a_2,...,a_n)
(5)

for any positive constant c.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.