Average Error: 0 → 0
Time: 320.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 r340572 = x;
        double r340573 = y;
        double r340574 = r340572 + r340573;
        double r340575 = 2.0;
        double r340576 = r340574 / r340575;
        return r340576;
}

double f(double x, double y) {
        double r340577 = x;
        double r340578 = y;
        double r340579 = r340577 + r340578;
        double r340580 = 2.0;
        double r340581 = r340579 / r340580;
        return r340581;
}

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