Average Error: 0 → 0
Time: 817.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 r11092179 = x;
        double r11092180 = y;
        double r11092181 = r11092179 + r11092180;
        double r11092182 = 2.0;
        double r11092183 = r11092181 / r11092182;
        return r11092183;
}

double f(double x, double y) {
        double r11092184 = y;
        double r11092185 = x;
        double r11092186 = r11092184 + r11092185;
        double r11092187 = 2.0;
        double r11092188 = r11092186 / r11092187;
        return r11092188;
}

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