Harmonic Mean Calculator — 公式
## How to Compute the Harmonic Mean
### Formula (for two values)
**Harmonic Mean = 2 / (1/a + 1/b)**
More generally for n values: **HM = n / (1/v1 + 1/v2 + ... + 1/vn)**
The harmonic mean gives more weight to smaller values. It is the correct average to use when the quantities are defined in relation to a common unit, such as speed over the same distance at different rates.
### Formula (for two values)
**Harmonic Mean = 2 / (1/a + 1/b)**
More generally for n values: **HM = n / (1/v1 + 1/v2 + ... + 1/vn)**
The harmonic mean gives more weight to smaller values. It is the correct average to use when the quantities are defined in relation to a common unit, such as speed over the same distance at different rates.
计算示例
A car travels 100 km at 40 km/h and returns at 60 km/h. What is the average speed?
- Reciprocal sum = 1/40 + 1/60 = 0.025 + 0.01667 = 0.04167
- Harmonic Mean = 2 / 0.04167 = 48
- The average speed is 48 km/h (not 50 as the arithmetic mean would suggest)