Average Error: 0 → 0
Time: 580.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 r201489 = x;
        double r201490 = y;
        double r201491 = r201489 + r201490;
        double r201492 = 2.0;
        double r201493 = r201491 / r201492;
        return r201493;
}

double f(double x, double y) {
        double r201494 = x;
        double r201495 = y;
        double r201496 = r201494 + r201495;
        double r201497 = 2.0;
        double r201498 = r201496 / r201497;
        return r201498;
}

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