Average Error: 0 → 0
Time: 619.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 r161311 = x;
        double r161312 = y;
        double r161313 = r161311 + r161312;
        double r161314 = 2.0;
        double r161315 = r161313 / r161314;
        return r161315;
}

double f(double x, double y) {
        double r161316 = x;
        double r161317 = y;
        double r161318 = r161316 + r161317;
        double r161319 = 2.0;
        double r161320 = r161318 / r161319;
        return r161320;
}

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