Average Error: 0 → 0
Time: 705.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 r173214 = x;
        double r173215 = y;
        double r173216 = r173214 + r173215;
        double r173217 = 2.0;
        double r173218 = r173216 / r173217;
        return r173218;
}

double f(double x, double y) {
        double r173219 = x;
        double r173220 = y;
        double r173221 = r173219 + r173220;
        double r173222 = 2.0;
        double r173223 = r173221 / r173222;
        return r173223;
}

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