Average Error: 0 → 0
Time: 499.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 r185117 = x;
        double r185118 = y;
        double r185119 = r185117 + r185118;
        double r185120 = 2.0;
        double r185121 = r185119 / r185120;
        return r185121;
}

double f(double x, double y) {
        double r185122 = x;
        double r185123 = y;
        double r185124 = r185122 + r185123;
        double r185125 = 2.0;
        double r185126 = r185124 / r185125;
        return r185126;
}

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