Average Error: 0 → 0
Time: 1.1s
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 r194145 = x;
        double r194146 = y;
        double r194147 = r194145 + r194146;
        double r194148 = 2.0;
        double r194149 = r194147 / r194148;
        return r194149;
}

double f(double x, double y) {
        double r194150 = x;
        double r194151 = y;
        double r194152 = r194150 + r194151;
        double r194153 = 2.0;
        double r194154 = r194152 / r194153;
        return r194154;
}

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))