Average Error: 0 → 0
Time: 776.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 r5403218 = x;
        double r5403219 = y;
        double r5403220 = r5403218 + r5403219;
        double r5403221 = 2.0;
        double r5403222 = r5403220 / r5403221;
        return r5403222;
}

double f(double x, double y) {
        double r5403223 = y;
        double r5403224 = x;
        double r5403225 = r5403223 + r5403224;
        double r5403226 = 2.0;
        double r5403227 = r5403225 / r5403226;
        return r5403227;
}

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