Average Error: 0 → 0
Time: 324.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 r247404 = x;
        double r247405 = y;
        double r247406 = r247404 + r247405;
        double r247407 = 2.0;
        double r247408 = r247406 / r247407;
        return r247408;
}

double f(double x, double y) {
        double r247409 = x;
        double r247410 = y;
        double r247411 = r247409 + r247410;
        double r247412 = 2.0;
        double r247413 = r247411 / r247412;
        return r247413;
}

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