Average Error: 0 → 0
Time: 661.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 r216364 = x;
        double r216365 = y;
        double r216366 = r216364 + r216365;
        double r216367 = 2.0;
        double r216368 = r216366 / r216367;
        return r216368;
}

double f(double x, double y) {
        double r216369 = x;
        double r216370 = y;
        double r216371 = r216369 + r216370;
        double r216372 = 2.0;
        double r216373 = r216371 / r216372;
        return r216373;
}

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