Average Error: 0 → 0
Time: 439.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 r247964 = x;
        double r247965 = y;
        double r247966 = r247964 + r247965;
        double r247967 = 2.0;
        double r247968 = r247966 / r247967;
        return r247968;
}

double f(double x, double y) {
        double r247969 = x;
        double r247970 = y;
        double r247971 = r247969 + r247970;
        double r247972 = 2.0;
        double r247973 = r247971 / r247972;
        return r247973;
}

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