Average Error: 0 → 0
Time: 366.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 r304814 = x;
        double r304815 = y;
        double r304816 = r304814 + r304815;
        double r304817 = 2.0;
        double r304818 = r304816 / r304817;
        return r304818;
}

double f(double x, double y) {
        double r304819 = x;
        double r304820 = y;
        double r304821 = r304819 + r304820;
        double r304822 = 2.0;
        double r304823 = r304821 / r304822;
        return r304823;
}

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