WLJS LogoWLJS Notebook

HarmonicMean

HarmonicMean[data] gives the harmonic mean of the values in data.

Examples

Compute the harmonic mean:

HarmonicMean[{1, 2, 4}]
(* 12/7 *)

Numerical result:

N[HarmonicMean[{1, 2, 4}]]
(* 1.71429 *)

Please visit the official Wolfram Language Reference for more details.

On this page