Average Error: 0 → 0
Time: 669.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 r193880 = x;
        double r193881 = y;
        double r193882 = r193880 + r193881;
        double r193883 = 2.0;
        double r193884 = r193882 / r193883;
        return r193884;
}

double f(double x, double y) {
        double r193885 = x;
        double r193886 = y;
        double r193887 = r193885 + r193886;
        double r193888 = 2.0;
        double r193889 = r193887 / r193888;
        return r193889;
}

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