Average Error: 0 → 0
Time: 339.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 r263696 = x;
        double r263697 = y;
        double r263698 = r263696 + r263697;
        double r263699 = 2.0;
        double r263700 = r263698 / r263699;
        return r263700;
}

double f(double x, double y) {
        double r263701 = x;
        double r263702 = y;
        double r263703 = r263701 + r263702;
        double r263704 = 2.0;
        double r263705 = r263703 / r263704;
        return r263705;
}

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