Average Error: 0 → 0
Time: 322.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 r299439 = x;
        double r299440 = y;
        double r299441 = r299439 + r299440;
        double r299442 = 2.0;
        double r299443 = r299441 / r299442;
        return r299443;
}

double f(double x, double y) {
        double r299444 = x;
        double r299445 = y;
        double r299446 = r299444 + r299445;
        double r299447 = 2.0;
        double r299448 = r299446 / r299447;
        return r299448;
}

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))