Average Error: 0 → 0
Time: 685.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 r193402 = x;
        double r193403 = y;
        double r193404 = r193402 + r193403;
        double r193405 = 2.0;
        double r193406 = r193404 / r193405;
        return r193406;
}

double f(double x, double y) {
        double r193407 = x;
        double r193408 = y;
        double r193409 = r193407 + r193408;
        double r193410 = 2.0;
        double r193411 = r193409 / r193410;
        return r193411;
}

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