Average Error: 0 → 0
Time: 332.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 r257240 = x;
        double r257241 = y;
        double r257242 = r257240 + r257241;
        double r257243 = 2.0;
        double r257244 = r257242 / r257243;
        return r257244;
}

double f(double x, double y) {
        double r257245 = x;
        double r257246 = y;
        double r257247 = r257245 + r257246;
        double r257248 = 2.0;
        double r257249 = r257247 / r257248;
        return r257249;
}

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