Average Error: 0 → 0
Time: 319.0ms
Precision: 64
\[\frac{x + y}{2}\]
\[\frac{x + y}{2}\]
\frac{x + y}{2}
\frac{x + y}{2}
double f(double x, double y) {
        double r306782 = x;
        double r306783 = y;
        double r306784 = r306782 + r306783;
        double r306785 = 2.0;
        double r306786 = r306784 / r306785;
        return r306786;
}

double f(double x, double y) {
        double r306787 = x;
        double r306788 = y;
        double r306789 = r306787 + r306788;
        double r306790 = 2.0;
        double r306791 = r306789 / r306790;
        return r306791;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\frac{x + y}{2}\]
  2. Final simplification0

    \[\leadsto \frac{x + y}{2}\]

Reproduce

herbie shell --seed 2020047 
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  :precision binary64
  (/ (+ x y) 2))