Average Error: 0 → 0
Time: 353.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 r248523 = x;
        double r248524 = y;
        double r248525 = r248523 + r248524;
        double r248526 = 2.0;
        double r248527 = r248525 / r248526;
        return r248527;
}

double f(double x, double y) {
        double r248528 = x;
        double r248529 = y;
        double r248530 = r248528 + r248529;
        double r248531 = 2.0;
        double r248532 = r248530 / r248531;
        return r248532;
}

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