Average Error: 0 → 0
Time: 829.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 r33684124 = x;
        double r33684125 = y;
        double r33684126 = r33684124 + r33684125;
        double r33684127 = 2.0;
        double r33684128 = r33684126 / r33684127;
        return r33684128;
}

double f(double x, double y) {
        double r33684129 = x;
        double r33684130 = y;
        double r33684131 = r33684129 + r33684130;
        double r33684132 = 2.0;
        double r33684133 = r33684131 / r33684132;
        return r33684133;
}

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