Average Error: 0 → 0
Time: 527.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 r224052 = x;
        double r224053 = y;
        double r224054 = r224052 + r224053;
        double r224055 = 2.0;
        double r224056 = r224054 / r224055;
        return r224056;
}

double f(double x, double y) {
        double r224057 = x;
        double r224058 = y;
        double r224059 = r224057 + r224058;
        double r224060 = 2.0;
        double r224061 = r224059 / r224060;
        return r224061;
}

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