Average Error: 0 → 0
Time: 627.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 r10878536 = x;
        double r10878537 = y;
        double r10878538 = r10878536 + r10878537;
        double r10878539 = 2.0;
        double r10878540 = r10878538 / r10878539;
        return r10878540;
}

double f(double x, double y) {
        double r10878541 = y;
        double r10878542 = x;
        double r10878543 = r10878541 + r10878542;
        double r10878544 = 2.0;
        double r10878545 = r10878543 / r10878544;
        return r10878545;
}

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