Average Error: 0 → 0
Time: 371.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 r178855 = x;
        double r178856 = y;
        double r178857 = r178855 + r178856;
        double r178858 = 2.0;
        double r178859 = r178857 / r178858;
        return r178859;
}

double f(double x, double y) {
        double r178860 = x;
        double r178861 = y;
        double r178862 = r178860 + r178861;
        double r178863 = 2.0;
        double r178864 = r178862 / r178863;
        return r178864;
}

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