Average Error: 0 → 0
Time: 964.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 r162150 = x;
        double r162151 = y;
        double r162152 = r162150 + r162151;
        double r162153 = 2.0;
        double r162154 = r162152 / r162153;
        return r162154;
}

double f(double x, double y) {
        double r162155 = x;
        double r162156 = y;
        double r162157 = r162155 + r162156;
        double r162158 = 2.0;
        double r162159 = r162157 / r162158;
        return r162159;
}

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