Average Error: 0 → 0
Time: 707.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 r204108 = x;
        double r204109 = y;
        double r204110 = r204108 + r204109;
        double r204111 = 2.0;
        double r204112 = r204110 / r204111;
        return r204112;
}

double f(double x, double y) {
        double r204113 = x;
        double r204114 = y;
        double r204115 = r204113 + r204114;
        double r204116 = 2.0;
        double r204117 = r204115 / r204116;
        return r204117;
}

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