Average Error: 0 → 0
Time: 651.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 r176124 = x;
        double r176125 = y;
        double r176126 = r176124 + r176125;
        double r176127 = 2.0;
        double r176128 = r176126 / r176127;
        return r176128;
}

double f(double x, double y) {
        double r176129 = x;
        double r176130 = y;
        double r176131 = r176129 + r176130;
        double r176132 = 2.0;
        double r176133 = r176131 / r176132;
        return r176133;
}

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