Average Error: 0 → 0
Time: 648.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 r177997 = x;
        double r177998 = y;
        double r177999 = r177997 + r177998;
        double r178000 = 2.0;
        double r178001 = r177999 / r178000;
        return r178001;
}

double f(double x, double y) {
        double r178002 = x;
        double r178003 = y;
        double r178004 = r178002 + r178003;
        double r178005 = 2.0;
        double r178006 = r178004 / r178005;
        return r178006;
}

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