Average Error: 0 → 0
Time: 530.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 r174720 = x;
        double r174721 = y;
        double r174722 = r174720 + r174721;
        double r174723 = 2.0;
        double r174724 = r174722 / r174723;
        return r174724;
}

double f(double x, double y) {
        double r174725 = x;
        double r174726 = y;
        double r174727 = r174725 + r174726;
        double r174728 = 2.0;
        double r174729 = r174727 / r174728;
        return r174729;
}

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