Average Error: 0 → 0
Time: 1.0s
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 r162707 = x;
        double r162708 = y;
        double r162709 = r162707 + r162708;
        double r162710 = 2.0;
        double r162711 = r162709 / r162710;
        return r162711;
}

double f(double x, double y) {
        double r162712 = x;
        double r162713 = y;
        double r162714 = r162712 + r162713;
        double r162715 = 2.0;
        double r162716 = r162714 / r162715;
        return r162716;
}

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