Average Error: 0 → 0
Time: 344.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 r226515 = x;
        double r226516 = y;
        double r226517 = r226515 + r226516;
        double r226518 = 2.0;
        double r226519 = r226517 / r226518;
        return r226519;
}

double f(double x, double y) {
        double r226520 = x;
        double r226521 = y;
        double r226522 = r226520 + r226521;
        double r226523 = 2.0;
        double r226524 = r226522 / r226523;
        return r226524;
}

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