Average Error: 0 → 0
Time: 359.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 r314101 = x;
        double r314102 = y;
        double r314103 = r314101 + r314102;
        double r314104 = 2.0;
        double r314105 = r314103 / r314104;
        return r314105;
}

double f(double x, double y) {
        double r314106 = x;
        double r314107 = y;
        double r314108 = r314106 + r314107;
        double r314109 = 2.0;
        double r314110 = r314108 / r314109;
        return r314110;
}

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