Average Error: 0 → 0
Time: 654.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 r12475317 = x;
        double r12475318 = y;
        double r12475319 = r12475317 + r12475318;
        double r12475320 = 2.0;
        double r12475321 = r12475319 / r12475320;
        return r12475321;
}

double f(double x, double y) {
        double r12475322 = y;
        double r12475323 = x;
        double r12475324 = r12475322 + r12475323;
        double r12475325 = 2.0;
        double r12475326 = r12475324 / r12475325;
        return r12475326;
}

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))