Average Error: 0 → 0
Time: 460.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 r283727 = x;
        double r283728 = y;
        double r283729 = r283727 + r283728;
        double r283730 = 2.0;
        double r283731 = r283729 / r283730;
        return r283731;
}

double f(double x, double y) {
        double r283732 = x;
        double r283733 = y;
        double r283734 = r283732 + r283733;
        double r283735 = 2.0;
        double r283736 = r283734 / r283735;
        return r283736;
}

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