Average Error: 0 → 0
Time: 693.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 r163118 = x;
        double r163119 = y;
        double r163120 = r163118 + r163119;
        double r163121 = 2.0;
        double r163122 = r163120 / r163121;
        return r163122;
}

double f(double x, double y) {
        double r163123 = x;
        double r163124 = y;
        double r163125 = r163123 + r163124;
        double r163126 = 2.0;
        double r163127 = r163125 / r163126;
        return r163127;
}

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