Average Error: 0 → 0
Time: 1.7s
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 r13667011 = x;
        double r13667012 = y;
        double r13667013 = r13667011 + r13667012;
        double r13667014 = 2.0;
        double r13667015 = r13667013 / r13667014;
        return r13667015;
}

double f(double x, double y) {
        double r13667016 = y;
        double r13667017 = x;
        double r13667018 = r13667016 + r13667017;
        double r13667019 = 2.0;
        double r13667020 = r13667018 / r13667019;
        return r13667020;
}

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