Average Error: 0 → 0
Time: 1.3s
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 r192170 = x;
        double r192171 = y;
        double r192172 = r192170 + r192171;
        double r192173 = 2.0;
        double r192174 = r192172 / r192173;
        return r192174;
}

double f(double x, double y) {
        double r192175 = y;
        double r192176 = x;
        double r192177 = r192175 + r192176;
        double r192178 = 2.0;
        double r192179 = r192177 / r192178;
        return r192179;
}

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