Average Error: 0 → 0
Time: 899.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 r11963321 = x;
        double r11963322 = y;
        double r11963323 = r11963321 + r11963322;
        double r11963324 = 2.0;
        double r11963325 = r11963323 / r11963324;
        return r11963325;
}

double f(double x, double y) {
        double r11963326 = y;
        double r11963327 = x;
        double r11963328 = r11963326 + r11963327;
        double r11963329 = 2.0;
        double r11963330 = r11963328 / r11963329;
        return r11963330;
}

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