Average Error: 0 → 0
Time: 328.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 r325566 = x;
        double r325567 = y;
        double r325568 = r325566 + r325567;
        double r325569 = 2.0;
        double r325570 = r325568 / r325569;
        return r325570;
}

double f(double x, double y) {
        double r325571 = x;
        double r325572 = y;
        double r325573 = r325571 + r325572;
        double r325574 = 2.0;
        double r325575 = r325573 / r325574;
        return r325575;
}

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