Average Error: 0 → 0
Time: 332.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 r269833 = x;
        double r269834 = y;
        double r269835 = r269833 + r269834;
        double r269836 = 2.0;
        double r269837 = r269835 / r269836;
        return r269837;
}

double f(double x, double y) {
        double r269838 = x;
        double r269839 = y;
        double r269840 = r269838 + r269839;
        double r269841 = 2.0;
        double r269842 = r269840 / r269841;
        return r269842;
}

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