Average Error: 0 → 0
Time: 690.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 r13700953 = x;
        double r13700954 = y;
        double r13700955 = r13700953 + r13700954;
        double r13700956 = 2.0;
        double r13700957 = r13700955 / r13700956;
        return r13700957;
}

double f(double x, double y) {
        double r13700958 = x;
        double r13700959 = y;
        double r13700960 = r13700958 + r13700959;
        double r13700961 = 2.0;
        double r13700962 = r13700960 / r13700961;
        return r13700962;
}

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