Average Error: 0 → 0
Time: 322.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 r360343 = x;
        double r360344 = y;
        double r360345 = r360343 + r360344;
        double r360346 = 2.0;
        double r360347 = r360345 / r360346;
        return r360347;
}

double f(double x, double y) {
        double r360348 = x;
        double r360349 = y;
        double r360350 = r360348 + r360349;
        double r360351 = 2.0;
        double r360352 = r360350 / r360351;
        return r360352;
}

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