Average Error: 0 → 0
Time: 725.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 r164151 = x;
        double r164152 = y;
        double r164153 = r164151 + r164152;
        double r164154 = 2.0;
        double r164155 = r164153 / r164154;
        return r164155;
}

double f(double x, double y) {
        double r164156 = x;
        double r164157 = y;
        double r164158 = r164156 + r164157;
        double r164159 = 2.0;
        double r164160 = r164158 / r164159;
        return r164160;
}

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