Average Error: 0 → 0
Time: 478.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 r274499 = x;
        double r274500 = y;
        double r274501 = r274499 + r274500;
        double r274502 = 2.0;
        double r274503 = r274501 / r274502;
        return r274503;
}

double f(double x, double y) {
        double r274504 = x;
        double r274505 = y;
        double r274506 = r274504 + r274505;
        double r274507 = 2.0;
        double r274508 = r274506 / r274507;
        return r274508;
}

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