Average Error: 0 → 0
Time: 959.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 r245104 = x;
        double r245105 = y;
        double r245106 = r245104 + r245105;
        double r245107 = 2.0;
        double r245108 = r245106 / r245107;
        return r245108;
}

double f(double x, double y) {
        double r245109 = y;
        double r245110 = x;
        double r245111 = r245109 + r245110;
        double r245112 = 2.0;
        double r245113 = r245111 / r245112;
        return r245113;
}

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