Average Error: 0 → 0
Time: 356.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 r304747 = x;
        double r304748 = y;
        double r304749 = r304747 + r304748;
        double r304750 = 2.0;
        double r304751 = r304749 / r304750;
        return r304751;
}

double f(double x, double y) {
        double r304752 = x;
        double r304753 = y;
        double r304754 = r304752 + r304753;
        double r304755 = 2.0;
        double r304756 = r304754 / r304755;
        return r304756;
}

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