Average Error: 0 → 0
Time: 658.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 r208816 = x;
        double r208817 = y;
        double r208818 = r208816 + r208817;
        double r208819 = 2.0;
        double r208820 = r208818 / r208819;
        return r208820;
}

double f(double x, double y) {
        double r208821 = x;
        double r208822 = y;
        double r208823 = r208821 + r208822;
        double r208824 = 2.0;
        double r208825 = r208823 / r208824;
        return r208825;
}

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