Average Error: 0 → 0
Time: 795.0ms
Precision: 64
\[\frac{x + y}{2}\]
\[\frac{y + x}{2}\]
\frac{x + y}{2}
\frac{y + x}{2}
double f(double x, double y) {
        double r13314378 = x;
        double r13314379 = y;
        double r13314380 = r13314378 + r13314379;
        double r13314381 = 2.0;
        double r13314382 = r13314380 / r13314381;
        return r13314382;
}

double f(double x, double y) {
        double r13314383 = y;
        double r13314384 = x;
        double r13314385 = r13314383 + r13314384;
        double r13314386 = 2.0;
        double r13314387 = r13314385 / r13314386;
        return r13314387;
}

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{y + x}{2}\]

Reproduce

herbie shell --seed 2019169 
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  (/ (+ x y) 2.0))