Average Error: 0 → 0
Time: 966.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 r207945 = x;
        double r207946 = y;
        double r207947 = r207945 + r207946;
        double r207948 = 2.0;
        double r207949 = r207947 / r207948;
        return r207949;
}

double f(double x, double y) {
        double r207950 = x;
        double r207951 = y;
        double r207952 = r207950 + r207951;
        double r207953 = 2.0;
        double r207954 = r207952 / r207953;
        return r207954;
}

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