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 r214262 = x;
        double r214263 = y;
        double r214264 = r214262 + r214263;
        double r214265 = 2.0;
        double r214266 = r214264 / r214265;
        return r214266;
}

double f(double x, double y) {
        double r214267 = x;
        double r214268 = y;
        double r214269 = r214267 + r214268;
        double r214270 = 2.0;
        double r214271 = r214269 / r214270;
        return r214271;
}

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