Average Error: 0 → 0
Time: 667.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 r157924 = x;
        double r157925 = y;
        double r157926 = r157924 + r157925;
        double r157927 = 2.0;
        double r157928 = r157926 / r157927;
        return r157928;
}

double f(double x, double y) {
        double r157929 = x;
        double r157930 = y;
        double r157931 = r157929 + r157930;
        double r157932 = 2.0;
        double r157933 = r157931 / r157932;
        return r157933;
}

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