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 r225110 = x;
        double r225111 = y;
        double r225112 = r225110 + r225111;
        double r225113 = 2.0;
        double r225114 = r225112 / r225113;
        return r225114;
}

double f(double x, double y) {
        double r225115 = x;
        double r225116 = y;
        double r225117 = r225115 + r225116;
        double r225118 = 2.0;
        double r225119 = r225117 / r225118;
        return r225119;
}

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