Average Error: 0 → 0
Time: 669.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 r184830 = x;
        double r184831 = y;
        double r184832 = r184830 + r184831;
        double r184833 = 2.0;
        double r184834 = r184832 / r184833;
        return r184834;
}

double f(double x, double y) {
        double r184835 = x;
        double r184836 = y;
        double r184837 = r184835 + r184836;
        double r184838 = 2.0;
        double r184839 = r184837 / r184838;
        return r184839;
}

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