Average Error: 0 → 0
Time: 349.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 r220287 = x;
        double r220288 = y;
        double r220289 = r220287 + r220288;
        double r220290 = 2.0;
        double r220291 = r220289 / r220290;
        return r220291;
}

double f(double x, double y) {
        double r220292 = x;
        double r220293 = y;
        double r220294 = r220292 + r220293;
        double r220295 = 2.0;
        double r220296 = r220294 / r220295;
        return r220296;
}

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