Average Error: 0 → 0
Time: 319.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 r385417 = x;
        double r385418 = y;
        double r385419 = r385417 + r385418;
        double r385420 = 2.0;
        double r385421 = r385419 / r385420;
        return r385421;
}

double f(double x, double y) {
        double r385422 = x;
        double r385423 = y;
        double r385424 = r385422 + r385423;
        double r385425 = 2.0;
        double r385426 = r385424 / r385425;
        return r385426;
}

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