Average Error: 0 → 0
Time: 617.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 r213422 = x;
        double r213423 = y;
        double r213424 = r213422 + r213423;
        double r213425 = 2.0;
        double r213426 = r213424 / r213425;
        return r213426;
}

double f(double x, double y) {
        double r213427 = x;
        double r213428 = y;
        double r213429 = r213427 + r213428;
        double r213430 = 2.0;
        double r213431 = r213429 / r213430;
        return r213431;
}

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