Average Error: 0 → 0
Time: 2.1s
Precision: 64
\[\frac{x + y}{2.0}\]
\[\frac{y + x}{2.0}\]
\frac{x + y}{2.0}
\frac{y + x}{2.0}
double f(double x, double y) {
        double r11419363 = x;
        double r11419364 = y;
        double r11419365 = r11419363 + r11419364;
        double r11419366 = 2.0;
        double r11419367 = r11419365 / r11419366;
        return r11419367;
}

double f(double x, double y) {
        double r11419368 = y;
        double r11419369 = x;
        double r11419370 = r11419368 + r11419369;
        double r11419371 = 2.0;
        double r11419372 = r11419370 / r11419371;
        return r11419372;
}

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.0}\]
  2. Final simplification0

    \[\leadsto \frac{y + x}{2.0}\]

Reproduce

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