Average Error: 0 → 0
Time: 670.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 r11720251 = x;
        double r11720252 = y;
        double r11720253 = r11720251 + r11720252;
        double r11720254 = 2.0;
        double r11720255 = r11720253 / r11720254;
        return r11720255;
}

double f(double x, double y) {
        double r11720256 = y;
        double r11720257 = x;
        double r11720258 = r11720256 + r11720257;
        double r11720259 = 2.0;
        double r11720260 = r11720258 / r11720259;
        return r11720260;
}

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