Average Error: 0 → 0
Time: 486.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 r304436 = x;
        double r304437 = y;
        double r304438 = r304436 + r304437;
        double r304439 = 2.0;
        double r304440 = r304438 / r304439;
        return r304440;
}

double f(double x, double y) {
        double r304441 = x;
        double r304442 = y;
        double r304443 = r304441 + r304442;
        double r304444 = 2.0;
        double r304445 = r304443 / r304444;
        return r304445;
}

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