Average Error: 0 → 0
Time: 348.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 r275284 = x;
        double r275285 = y;
        double r275286 = r275284 + r275285;
        double r275287 = 2.0;
        double r275288 = r275286 / r275287;
        return r275288;
}

double f(double x, double y) {
        double r275289 = x;
        double r275290 = y;
        double r275291 = r275289 + r275290;
        double r275292 = 2.0;
        double r275293 = r275291 / r275292;
        return r275293;
}

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