Average Error: 0 → 0
Time: 969.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 r190511 = x;
        double r190512 = y;
        double r190513 = r190511 + r190512;
        double r190514 = 2.0;
        double r190515 = r190513 / r190514;
        return r190515;
}

double f(double x, double y) {
        double r190516 = x;
        double r190517 = y;
        double r190518 = r190516 + r190517;
        double r190519 = 2.0;
        double r190520 = r190518 / r190519;
        return r190520;
}

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