Average Error: 0 → 0
Time: 329.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 r300715 = x;
        double r300716 = y;
        double r300717 = r300715 + r300716;
        double r300718 = 2.0;
        double r300719 = r300717 / r300718;
        return r300719;
}

double f(double x, double y) {
        double r300720 = x;
        double r300721 = y;
        double r300722 = r300720 + r300721;
        double r300723 = 2.0;
        double r300724 = r300722 / r300723;
        return r300724;
}

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