Average Error: 0 → 0
Time: 357.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 r256412 = x;
        double r256413 = y;
        double r256414 = r256412 + r256413;
        double r256415 = 2.0;
        double r256416 = r256414 / r256415;
        return r256416;
}

double f(double x, double y) {
        double r256417 = x;
        double r256418 = y;
        double r256419 = r256417 + r256418;
        double r256420 = 2.0;
        double r256421 = r256419 / r256420;
        return r256421;
}

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