Average Error: 0 → 0
Time: 778.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 r151342 = x;
        double r151343 = y;
        double r151344 = r151342 + r151343;
        double r151345 = 2.0;
        double r151346 = r151344 / r151345;
        return r151346;
}

double f(double x, double y) {
        double r151347 = x;
        double r151348 = y;
        double r151349 = r151347 + r151348;
        double r151350 = 2.0;
        double r151351 = r151349 / r151350;
        return r151351;
}

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