Average Error: 0 → 0
Time: 939.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 r16073471 = x;
        double r16073472 = y;
        double r16073473 = r16073471 + r16073472;
        double r16073474 = 2.0;
        double r16073475 = r16073473 / r16073474;
        return r16073475;
}

double f(double x, double y) {
        double r16073476 = y;
        double r16073477 = x;
        double r16073478 = r16073476 + r16073477;
        double r16073479 = 2.0;
        double r16073480 = r16073478 / r16073479;
        return r16073480;
}

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