Average Error: 0 → 0
Time: 684.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 r1190 = x;
        double r1191 = y;
        double r1192 = r1190 + r1191;
        double r1193 = 2.0;
        double r1194 = r1192 / r1193;
        return r1194;
}

double f(double x, double y) {
        double r1195 = x;
        double r1196 = y;
        double r1197 = r1195 + r1196;
        double r1198 = 2.0;
        double r1199 = r1197 / r1198;
        return r1199;
}

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