Average Error: 0 → 0
Time: 866.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 r11935081 = x;
        double r11935082 = y;
        double r11935083 = r11935081 + r11935082;
        double r11935084 = 2.0;
        double r11935085 = r11935083 / r11935084;
        return r11935085;
}

double f(double x, double y) {
        double r11935086 = y;
        double r11935087 = x;
        double r11935088 = r11935086 + r11935087;
        double r11935089 = 2.0;
        double r11935090 = r11935088 / r11935089;
        return r11935090;
}

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