Average Error: 0 → 0
Time: 909.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 r11394921 = x;
        double r11394922 = y;
        double r11394923 = r11394921 + r11394922;
        double r11394924 = 2.0;
        double r11394925 = r11394923 / r11394924;
        return r11394925;
}

double f(double x, double y) {
        double r11394926 = y;
        double r11394927 = x;
        double r11394928 = r11394926 + r11394927;
        double r11394929 = 2.0;
        double r11394930 = r11394928 / r11394929;
        return r11394930;
}

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