Average Error: 0 → 0
Time: 318.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 r291165 = x;
        double r291166 = y;
        double r291167 = r291165 + r291166;
        double r291168 = 2.0;
        double r291169 = r291167 / r291168;
        return r291169;
}

double f(double x, double y) {
        double r291170 = x;
        double r291171 = y;
        double r291172 = r291170 + r291171;
        double r291173 = 2.0;
        double r291174 = r291172 / r291173;
        return r291174;
}

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