Average Error: 0 → 0
Time: 328.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 r286952 = x;
        double r286953 = y;
        double r286954 = r286952 + r286953;
        double r286955 = 2.0;
        double r286956 = r286954 / r286955;
        return r286956;
}

double f(double x, double y) {
        double r286957 = x;
        double r286958 = y;
        double r286959 = r286957 + r286958;
        double r286960 = 2.0;
        double r286961 = r286959 / r286960;
        return r286961;
}

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