Average Error: 0 → 0
Time: 918.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 r8584267 = x;
        double r8584268 = y;
        double r8584269 = r8584267 + r8584268;
        double r8584270 = 2.0;
        double r8584271 = r8584269 / r8584270;
        return r8584271;
}

double f(double x, double y) {
        double r8584272 = y;
        double r8584273 = x;
        double r8584274 = r8584272 + r8584273;
        double r8584275 = 2.0;
        double r8584276 = r8584274 / r8584275;
        return r8584276;
}

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