Average Error: 0 → 0
Time: 690.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 r158356 = x;
        double r158357 = y;
        double r158358 = r158356 + r158357;
        double r158359 = 2.0;
        double r158360 = r158358 / r158359;
        return r158360;
}

double f(double x, double y) {
        double r158361 = x;
        double r158362 = y;
        double r158363 = r158361 + r158362;
        double r158364 = 2.0;
        double r158365 = r158363 / r158364;
        return r158365;
}

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