Average Error: 0 → 0
Time: 356.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 r288990 = x;
        double r288991 = y;
        double r288992 = r288990 + r288991;
        double r288993 = 2.0;
        double r288994 = r288992 / r288993;
        return r288994;
}

double f(double x, double y) {
        double r288995 = x;
        double r288996 = y;
        double r288997 = r288995 + r288996;
        double r288998 = 2.0;
        double r288999 = r288997 / r288998;
        return r288999;
}

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 2020002 
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  :precision binary64
  (/ (+ x y) 2))