Average Error: 0 → 0
Time: 311.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 r199359 = x;
        double r199360 = y;
        double r199361 = r199359 + r199360;
        double r199362 = 2.0;
        double r199363 = r199361 / r199362;
        return r199363;
}

double f(double x, double y) {
        double r199364 = x;
        double r199365 = y;
        double r199366 = r199364 + r199365;
        double r199367 = 2.0;
        double r199368 = r199366 / r199367;
        return r199368;
}

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