Average Error: 0 → 0
Time: 440.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 r242178 = x;
        double r242179 = y;
        double r242180 = r242178 + r242179;
        double r242181 = 2.0;
        double r242182 = r242180 / r242181;
        return r242182;
}

double f(double x, double y) {
        double r242183 = x;
        double r242184 = y;
        double r242185 = r242183 + r242184;
        double r242186 = 2.0;
        double r242187 = r242185 / r242186;
        return r242187;
}

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