Average Error: 0 → 0
Time: 646.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 r213037 = x;
        double r213038 = y;
        double r213039 = r213037 + r213038;
        double r213040 = 2.0;
        double r213041 = r213039 / r213040;
        return r213041;
}

double f(double x, double y) {
        double r213042 = x;
        double r213043 = y;
        double r213044 = r213042 + r213043;
        double r213045 = 2.0;
        double r213046 = r213044 / r213045;
        return r213046;
}

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