Average Error: 0 → 0
Time: 857.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 r10405554 = x;
        double r10405555 = y;
        double r10405556 = r10405554 + r10405555;
        double r10405557 = 2.0;
        double r10405558 = r10405556 / r10405557;
        return r10405558;
}

double f(double x, double y) {
        double r10405559 = y;
        double r10405560 = x;
        double r10405561 = r10405559 + r10405560;
        double r10405562 = 2.0;
        double r10405563 = r10405561 / r10405562;
        return r10405563;
}

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