Average Error: 0 → 0
Time: 319.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 r83474 = x;
        double r83475 = y;
        double r83476 = r83474 + r83475;
        double r83477 = 2.0;
        double r83478 = r83476 / r83477;
        return r83478;
}

double f(double x, double y) {
        double r83479 = x;
        double r83480 = y;
        double r83481 = r83479 + r83480;
        double r83482 = 2.0;
        double r83483 = r83481 / r83482;
        return r83483;
}

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