Average Error: 0 → 0
Time: 339.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 r311446 = x;
        double r311447 = y;
        double r311448 = r311446 + r311447;
        double r311449 = 2.0;
        double r311450 = r311448 / r311449;
        return r311450;
}

double f(double x, double y) {
        double r311451 = x;
        double r311452 = y;
        double r311453 = r311451 + r311452;
        double r311454 = 2.0;
        double r311455 = r311453 / r311454;
        return r311455;
}

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