Average Error: 0 → 0
Time: 711.0ms
Precision: 64
\[\frac{x + y}{2}\]
\[\frac{x + y}{2}\]
\frac{x + y}{2}
\frac{x + y}{2}
double f(double x, double y) {
        double r29944552 = x;
        double r29944553 = y;
        double r29944554 = r29944552 + r29944553;
        double r29944555 = 2.0;
        double r29944556 = r29944554 / r29944555;
        return r29944556;
}

double f(double x, double y) {
        double r29944557 = x;
        double r29944558 = y;
        double r29944559 = r29944557 + r29944558;
        double r29944560 = 2.0;
        double r29944561 = r29944559 / r29944560;
        return r29944561;
}

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{x + y}{2}\]

Reproduce

herbie shell --seed 2019173 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  (/ (+ x y) 2.0))