Average Error: 0 → 0
Time: 1.0s
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 r153006 = x;
        double r153007 = y;
        double r153008 = r153006 + r153007;
        double r153009 = 2.0;
        double r153010 = r153008 / r153009;
        return r153010;
}

double f(double x, double y) {
        double r153011 = x;
        double r153012 = y;
        double r153013 = r153011 + r153012;
        double r153014 = 2.0;
        double r153015 = r153013 / r153014;
        return r153015;
}

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