Average Error: 0 → 0
Time: 746.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 r152192 = x;
        double r152193 = y;
        double r152194 = r152192 + r152193;
        double r152195 = 2.0;
        double r152196 = r152194 / r152195;
        return r152196;
}

double f(double x, double y) {
        double r152197 = x;
        double r152198 = y;
        double r152199 = r152197 + r152198;
        double r152200 = 2.0;
        double r152201 = r152199 / r152200;
        return r152201;
}

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