Average Error: 0 → 0
Time: 445.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 r315050 = x;
        double r315051 = y;
        double r315052 = r315050 + r315051;
        double r315053 = 2.0;
        double r315054 = r315052 / r315053;
        return r315054;
}

double f(double x, double y) {
        double r315055 = x;
        double r315056 = y;
        double r315057 = r315055 + r315056;
        double r315058 = 2.0;
        double r315059 = r315057 / r315058;
        return r315059;
}

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