Average Error: 0 → 0
Time: 312.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 r218287 = x;
        double r218288 = y;
        double r218289 = r218287 + r218288;
        double r218290 = 2.0;
        double r218291 = r218289 / r218290;
        return r218291;
}

double f(double x, double y) {
        double r218292 = x;
        double r218293 = y;
        double r218294 = r218292 + r218293;
        double r218295 = 2.0;
        double r218296 = r218294 / r218295;
        return r218296;
}

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