Heronian Mean Calculator

Calculate the Heronian mean from two nonnegative values and see its geometric-mean term and position between familiar means.

Heronian Mean Calculator workspace

Enter your values

Use nonnegative values. Zero is allowed, including when both inputs are zero.

Press Enter to calculate
Examples
ANSWER

Heronian mean

6.33333333333
H(a,b)=a+ab+b3H(a,b)=\frac{a+\sqrt{ab}+b}{3}
Details and comparison
Geometric mean
6
Arithmetic mean
6.5
Inputs
4, 9
Geometric6
Heronian6.33333333333
Arithmetic6.5
Calculation steps
  1. Calculate the geometric mean term: √(ab) = √(4 × 9) = 6.
  2. Add the two inputs and the geometric mean term: 4 + 6 + 9 = 19.
  3. Divide by 3: H(a,b) = 19/3 = 6.333333333333333333333333333333333.
  4. The result lies between the geometric mean (6) and arithmetic mean (6.5).
Overview

What is a heronian mean calculator?

The Heronian mean of two nonnegative values is the average of the values and their geometric mean. It is named for the ancient mathematician Heron and is also encountered in geometric formulas. It falls between the geometric and arithmetic means for nonnegative inputs, with the usual equal-value case returning that common value.

Important terms

Geometric mean term
The square root √(ab), which contributes alongside a and b in the Heronian formula.
Nonnegative input
A real value greater than or equal to zero.
Heronian mean
The value (a+√(ab)+b)/3 for a,b≥0.

When this method is useful

  • Calculate the Heronian mean for a pair of nonnegative values.
  • Compare geometric, Heronian, and arithmetic means.
  • Inspect the contribution of the square-root term.
  • Check equal and zero-input boundary cases.
Formula

Formula and variables

H(a,b)=a+ab+b3H(a,b)=\frac{a+\sqrt{ab}+b}{3}
a,b
nonnegative real inputs
√(ab)
the geometric mean term for nonnegative a and b

Multiply the inputs, take the nonnegative square root, add that term to both original values, and divide by three. The Heronian mean is distinct from the arithmetic mean (a+b)/2 and the geometric mean √(ab).

Domain note: Both inputs must be finite and nonnegative. The formula is defined when either or both inputs are zero.

How it works

How to use this calculator

  1. 1

    Enter two finite nonnegative values.

  2. 2

    Calculate the geometric term √(ab).

  3. 3

    Add a, √(ab), and b.

  4. 4

    Divide that sum by 3 and compare with the geometric and arithmetic means.

Worked examples

Step-by-step examples

Example 1

Problem: Find the Heronian mean of 4 and 9.

Substitution: (4 + √(4×9) + 9)/3 = (4 + 6 + 9)/3

Result: 19/3 ≈ 6.333333333

The result lies between the geometric mean 6 and arithmetic mean 6.5.

Example 2

Problem: Find H(6,6).

Substitution: (6+√36+6)/3

Result: 6

Equal inputs return the common value.

Example 3

Problem: Find H(0,9).

Substitution: (0+√0+9)/3

Result: 3

A zero input is valid; both zero inputs also give the defined result 0.

Method knowledge

Rules, edge cases, and related ideas

Three contributions

The calculation averages a, √(ab), and b equally.

Mean bounds

The geometric term is no greater than the Heronian mean, which is no greater than the arithmetic mean.

Zero is allowed

The square-root term remains real for nonnegative inputs, including a zero endpoint.

Edge cases and limitations

  • Equal values return that value.
  • One zero input is allowed and gives one third of the other input.
  • Two zero inputs return zero.
  • Negative values are rejected by this nonnegative real-valued calculator.

How this differs from a related concept

Unlike the arithmetic mean, the Heronian mean includes a geometric term. For nonnegative values it is no smaller than the geometric mean and no larger than the arithmetic mean.

Interpretation

Understand the result

For nonnegative a and b, the Heronian mean is bounded by their geometric and arithmetic means. When either input is zero, the formula remains defined and returns one-third of the nonzero input; when both are zero, it returns zero.

Common mistakes

  • Dividing only a+b by three and omitting √(ab).
  • Confusing the Heronian mean with the harmonic mean.
  • Taking a square root before multiplying the inputs.
  • Assuming a zero input makes the formula undefined.

Frequently asked questions

What is the Heronian mean formula?

H(a,b)=(a+√(ab)+b)/3 for nonnegative real a and b.

Can one input be zero?

Yes. If one input is zero, the square-root term is zero and the result is one third of the other input.

What if both inputs are zero?

The formula is defined and returns 0.

How does it compare with the arithmetic mean?

For nonnegative inputs, the Heronian mean is at most the arithmetic mean and at least the geometric mean.

References & technical sources

Keep calculating

Related calculators