Average Error: 0 → 0
Time: 1.2s
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 r248499 = x;
        double r248500 = y;
        double r248501 = r248499 + r248500;
        double r248502 = 2.0;
        double r248503 = r248501 / r248502;
        return r248503;
}

double f(double x, double y) {
        double r248504 = x;
        double r248505 = y;
        double r248506 = r248504 + r248505;
        double r248507 = 2.0;
        double r248508 = r248506 / r248507;
        return r248508;
}

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