Average Error: 0 → 0
Time: 333.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 r245380 = x;
        double r245381 = y;
        double r245382 = r245380 + r245381;
        double r245383 = 2.0;
        double r245384 = r245382 / r245383;
        return r245384;
}

double f(double x, double y) {
        double r245385 = x;
        double r245386 = y;
        double r245387 = r245385 + r245386;
        double r245388 = 2.0;
        double r245389 = r245387 / r245388;
        return r245389;
}

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