Average Error: 0 → 0
Time: 539.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 r198895 = x;
        double r198896 = y;
        double r198897 = r198895 + r198896;
        double r198898 = 2.0;
        double r198899 = r198897 / r198898;
        return r198899;
}

double f(double x, double y) {
        double r198900 = x;
        double r198901 = y;
        double r198902 = r198900 + r198901;
        double r198903 = 2.0;
        double r198904 = r198902 / r198903;
        return r198904;
}

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