Average Error: 0 → 0
Time: 367.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 r263256 = x;
        double r263257 = y;
        double r263258 = r263256 + r263257;
        double r263259 = 2.0;
        double r263260 = r263258 / r263259;
        return r263260;
}

double f(double x, double y) {
        double r263261 = x;
        double r263262 = y;
        double r263263 = r263261 + r263262;
        double r263264 = 2.0;
        double r263265 = r263263 / r263264;
        return r263265;
}

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))