# Harmonic Mean

 Values 1:

Output: `Press calculate`

Harry Potter and the Sorcerer's Stone, Book 1 on Audible

As an Amazon Associate I earn from qualifying purchases. Thank you!

Formula:`H = n / (∑(1/xi))`

## Introduction to Harmonic Mean

The harmonic mean is a type of average, calculated as the reciprocal of the arithmetic mean of the reciprocals of the given set of numbers. It is often used to find the average of rates, such as speed, where the distance covered is constant but the time taken at different speeds varies. In this formula, H represents the harmonic mean, n is the number of values, and xi are the individual values.

## Parameter usage:

• `values` = an array of numbers

## Output:

• `hmean` = harmonic mean of the values

## Data validation

The numbers should be greater than zero. If any number is less than or equal to 0, an error message is returned.

## Summary

This calculator takes into account a set of numbers and outputs their harmonic mean. It is particularly useful in scenarios involving rates and ratios.

Tags: Statistics, Mean, Average, Rates