Average Error: 0 → 0
Time: 596.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 r21116 = x;
        double r21117 = y;
        double r21118 = r21116 + r21117;
        double r21119 = 2.0;
        double r21120 = r21118 / r21119;
        return r21120;
}

double f(double x, double y) {
        double r21121 = x;
        double r21122 = y;
        double r21123 = r21121 + r21122;
        double r21124 = 2.0;
        double r21125 = r21123 / r21124;
        return r21125;
}

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