Average Error: 0 → 0
Time: 631.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 r121365 = x;
        double r121366 = y;
        double r121367 = r121365 + r121366;
        double r121368 = 2.0;
        double r121369 = r121367 / r121368;
        return r121369;
}

double f(double x, double y) {
        double r121370 = x;
        double r121371 = y;
        double r121372 = r121370 + r121371;
        double r121373 = 2.0;
        double r121374 = r121372 / r121373;
        return r121374;
}

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