Average Error: 0 → 0
Time: 313.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 r379389 = x;
        double r379390 = y;
        double r379391 = r379389 + r379390;
        double r379392 = 2.0;
        double r379393 = r379391 / r379392;
        return r379393;
}

double f(double x, double y) {
        double r379394 = x;
        double r379395 = y;
        double r379396 = r379394 + r379395;
        double r379397 = 2.0;
        double r379398 = r379396 / r379397;
        return r379398;
}

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