Average Error: 0 → 0
Time: 322.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 r294451 = x;
        double r294452 = y;
        double r294453 = r294451 + r294452;
        double r294454 = 2.0;
        double r294455 = r294453 / r294454;
        return r294455;
}

double f(double x, double y) {
        double r294456 = x;
        double r294457 = y;
        double r294458 = r294456 + r294457;
        double r294459 = 2.0;
        double r294460 = r294458 / r294459;
        return r294460;
}

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