Average Error: 0 → 0
Time: 330.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 r289931 = x;
        double r289932 = y;
        double r289933 = r289931 + r289932;
        double r289934 = 2.0;
        double r289935 = r289933 / r289934;
        return r289935;
}

double f(double x, double y) {
        double r289936 = x;
        double r289937 = y;
        double r289938 = r289936 + r289937;
        double r289939 = 2.0;
        double r289940 = r289938 / r289939;
        return r289940;
}

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