Average Error: 0 → 0
Time: 321.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 r56546 = x;
        double r56547 = y;
        double r56548 = r56546 + r56547;
        double r56549 = 2.0;
        double r56550 = r56548 / r56549;
        return r56550;
}

double f(double x, double y) {
        double r56551 = x;
        double r56552 = y;
        double r56553 = r56551 + r56552;
        double r56554 = 2.0;
        double r56555 = r56553 / r56554;
        return r56555;
}

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