Average Error: 0 → 0
Time: 330.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 r344958 = x;
        double r344959 = y;
        double r344960 = r344958 + r344959;
        double r344961 = 2.0;
        double r344962 = r344960 / r344961;
        return r344962;
}

double f(double x, double y) {
        double r344963 = x;
        double r344964 = y;
        double r344965 = r344963 + r344964;
        double r344966 = 2.0;
        double r344967 = r344965 / r344966;
        return r344967;
}

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