Average Error: 0 → 0
Time: 785.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 r12008300 = x;
        double r12008301 = y;
        double r12008302 = r12008300 + r12008301;
        double r12008303 = 2.0;
        double r12008304 = r12008302 / r12008303;
        return r12008304;
}

double f(double x, double y) {
        double r12008305 = y;
        double r12008306 = x;
        double r12008307 = r12008305 + r12008306;
        double r12008308 = 2.0;
        double r12008309 = r12008307 / r12008308;
        return r12008309;
}

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