Average Error: 0 → 0
Time: 621.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 r15859610 = x;
        double r15859611 = y;
        double r15859612 = r15859610 + r15859611;
        double r15859613 = 2.0;
        double r15859614 = r15859612 / r15859613;
        return r15859614;
}

double f(double x, double y) {
        double r15859615 = y;
        double r15859616 = x;
        double r15859617 = r15859615 + r15859616;
        double r15859618 = 2.0;
        double r15859619 = r15859617 / r15859618;
        return r15859619;
}

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