Average Error: 0 → 0
Time: 454.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 r301196 = x;
        double r301197 = y;
        double r301198 = r301196 + r301197;
        double r301199 = 2.0;
        double r301200 = r301198 / r301199;
        return r301200;
}

double f(double x, double y) {
        double r301201 = x;
        double r301202 = y;
        double r301203 = r301201 + r301202;
        double r301204 = 2.0;
        double r301205 = r301203 / r301204;
        return r301205;
}

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