Average Error: 0 → 0
Time: 838.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 r14195583 = x;
        double r14195584 = y;
        double r14195585 = r14195583 + r14195584;
        double r14195586 = 2.0;
        double r14195587 = r14195585 / r14195586;
        return r14195587;
}

double f(double x, double y) {
        double r14195588 = y;
        double r14195589 = x;
        double r14195590 = r14195588 + r14195589;
        double r14195591 = 2.0;
        double r14195592 = r14195590 / r14195591;
        return r14195592;
}

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