Average Error: 0 → 0
Time: 324.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 r222245 = x;
        double r222246 = y;
        double r222247 = r222245 + r222246;
        double r222248 = 2.0;
        double r222249 = r222247 / r222248;
        return r222249;
}

double f(double x, double y) {
        double r222250 = x;
        double r222251 = y;
        double r222252 = r222250 + r222251;
        double r222253 = 2.0;
        double r222254 = r222252 / r222253;
        return r222254;
}

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