Average Error: 0 → 0
Time: 721.0ms
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 r11335977 = x;
        double r11335978 = y;
        double r11335979 = r11335977 + r11335978;
        double r11335980 = 2.0;
        double r11335981 = r11335979 / r11335980;
        return r11335981;
}

double f(double x, double y) {
        double r11335982 = y;
        double r11335983 = x;
        double r11335984 = r11335982 + r11335983;
        double r11335985 = 2.0;
        double r11335986 = r11335984 / r11335985;
        return r11335986;
}

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