Average Error: 0 → 0
Time: 930.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 r20431 = x;
        double r20432 = y;
        double r20433 = r20431 + r20432;
        double r20434 = 2.0;
        double r20435 = r20433 / r20434;
        return r20435;
}

double f(double x, double y) {
        double r20436 = x;
        double r20437 = y;
        double r20438 = r20436 + r20437;
        double r20439 = 2.0;
        double r20440 = r20438 / r20439;
        return r20440;
}

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