Average Error: 0 → 0
Time: 825.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 r23274 = x;
        double r23275 = y;
        double r23276 = r23274 + r23275;
        double r23277 = 2.0;
        double r23278 = r23276 / r23277;
        return r23278;
}

double f(double x, double y) {
        double r23279 = x;
        double r23280 = y;
        double r23281 = r23279 + r23280;
        double r23282 = 2.0;
        double r23283 = r23281 / r23282;
        return r23283;
}

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