Average Error: 0 → 0
Time: 1.1s
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 r184431 = x;
        double r184432 = y;
        double r184433 = r184431 + r184432;
        double r184434 = 2.0;
        double r184435 = r184433 / r184434;
        return r184435;
}

double f(double x, double y) {
        double r184436 = x;
        double r184437 = y;
        double r184438 = r184436 + r184437;
        double r184439 = 2.0;
        double r184440 = r184438 / r184439;
        return r184440;
}

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