Average Error: 0 → 0
Time: 680.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 r11754175 = x;
        double r11754176 = y;
        double r11754177 = r11754175 + r11754176;
        double r11754178 = 2.0;
        double r11754179 = r11754177 / r11754178;
        return r11754179;
}

double f(double x, double y) {
        double r11754180 = y;
        double r11754181 = x;
        double r11754182 = r11754180 + r11754181;
        double r11754183 = 2.0;
        double r11754184 = r11754182 / r11754183;
        return r11754184;
}

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