Average Error: 0 → 0
Time: 668.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 r12262512 = x;
        double r12262513 = y;
        double r12262514 = r12262512 + r12262513;
        double r12262515 = 2.0;
        double r12262516 = r12262514 / r12262515;
        return r12262516;
}

double f(double x, double y) {
        double r12262517 = y;
        double r12262518 = x;
        double r12262519 = r12262517 + r12262518;
        double r12262520 = 2.0;
        double r12262521 = r12262519 / r12262520;
        return r12262521;
}

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