Average Error: 0 → 0
Time: 989.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 r10498076 = x;
        double r10498077 = y;
        double r10498078 = r10498076 + r10498077;
        double r10498079 = 2.0;
        double r10498080 = r10498078 / r10498079;
        return r10498080;
}

double f(double x, double y) {
        double r10498081 = y;
        double r10498082 = x;
        double r10498083 = r10498081 + r10498082;
        double r10498084 = 2.0;
        double r10498085 = r10498083 / r10498084;
        return r10498085;
}

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