Average Error: 0 → 0
Time: 652.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 r1361 = x;
        double r1362 = y;
        double r1363 = r1361 + r1362;
        double r1364 = 2.0;
        double r1365 = r1363 / r1364;
        return r1365;
}

double f(double x, double y) {
        double r1366 = x;
        double r1367 = y;
        double r1368 = r1366 + r1367;
        double r1369 = 2.0;
        double r1370 = r1368 / r1369;
        return r1370;
}

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