Average Error: 0 → 0
Time: 676.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 r188566 = x;
        double r188567 = y;
        double r188568 = r188566 + r188567;
        double r188569 = 2.0;
        double r188570 = r188568 / r188569;
        return r188570;
}

double f(double x, double y) {
        double r188571 = x;
        double r188572 = y;
        double r188573 = r188571 + r188572;
        double r188574 = 2.0;
        double r188575 = r188573 / r188574;
        return r188575;
}

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