Average Error: 0 → 0
Time: 332.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 r247396 = x;
        double r247397 = y;
        double r247398 = r247396 + r247397;
        double r247399 = 2.0;
        double r247400 = r247398 / r247399;
        return r247400;
}

double f(double x, double y) {
        double r247401 = x;
        double r247402 = y;
        double r247403 = r247401 + r247402;
        double r247404 = 2.0;
        double r247405 = r247403 / r247404;
        return r247405;
}

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))