Average Error: 0 → 0
Time: 360.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 r281995 = x;
        double r281996 = y;
        double r281997 = r281995 + r281996;
        double r281998 = 2.0;
        double r281999 = r281997 / r281998;
        return r281999;
}

double f(double x, double y) {
        double r282000 = x;
        double r282001 = y;
        double r282002 = r282000 + r282001;
        double r282003 = 2.0;
        double r282004 = r282002 / r282003;
        return r282004;
}

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