Average Error: 0 → 0
Time: 914.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 r13996115 = x;
        double r13996116 = y;
        double r13996117 = r13996115 + r13996116;
        double r13996118 = 2.0;
        double r13996119 = r13996117 / r13996118;
        return r13996119;
}

double f(double x, double y) {
        double r13996120 = y;
        double r13996121 = x;
        double r13996122 = r13996120 + r13996121;
        double r13996123 = 2.0;
        double r13996124 = r13996122 / r13996123;
        return r13996124;
}

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