Average Error: 0 → 0
Time: 441.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 r239226 = x;
        double r239227 = y;
        double r239228 = r239226 + r239227;
        double r239229 = 2.0;
        double r239230 = r239228 / r239229;
        return r239230;
}

double f(double x, double y) {
        double r239231 = x;
        double r239232 = y;
        double r239233 = r239231 + r239232;
        double r239234 = 2.0;
        double r239235 = r239233 / r239234;
        return r239235;
}

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