Average Error: 0 → 0
Time: 329.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 r295724 = x;
        double r295725 = y;
        double r295726 = r295724 + r295725;
        double r295727 = 2.0;
        double r295728 = r295726 / r295727;
        return r295728;
}

double f(double x, double y) {
        double r295729 = x;
        double r295730 = y;
        double r295731 = r295729 + r295730;
        double r295732 = 2.0;
        double r295733 = r295731 / r295732;
        return r295733;
}

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