Average Error: 0 → 0
Time: 951.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 r218749 = x;
        double r218750 = y;
        double r218751 = r218749 + r218750;
        double r218752 = 2.0;
        double r218753 = r218751 / r218752;
        return r218753;
}

double f(double x, double y) {
        double r218754 = x;
        double r218755 = y;
        double r218756 = r218754 + r218755;
        double r218757 = 2.0;
        double r218758 = r218756 / r218757;
        return r218758;
}

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