Average Error: 0 → 0
Time: 323.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 r276253 = x;
        double r276254 = y;
        double r276255 = r276253 + r276254;
        double r276256 = 2.0;
        double r276257 = r276255 / r276256;
        return r276257;
}

double f(double x, double y) {
        double r276258 = x;
        double r276259 = y;
        double r276260 = r276258 + r276259;
        double r276261 = 2.0;
        double r276262 = r276260 / r276261;
        return r276262;
}

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