HarmonicMean function

The HarmonicMean atom.

The HarmonicMean atom.

The harmonic mean of x, 1ni=1nxi1\frac{1}{n} \sum_{i=1}^n x_i^{-1}, where n is the length of x.

HarmonicMean(x)

Arguments

  • x: An expression or number whose harmonic mean is to be computed. Must have positive entries.

Returns

The harmonic mean of x.

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07