Average Error: 0 → 0
Time: 1.2s
Precision: 64
\[\frac{x + y}{2}\]
\[\frac{y + x}{2}\]
\frac{x + y}{2}
\frac{y + x}{2}
double f(double x, double y) {
        double r222832 = x;
        double r222833 = y;
        double r222834 = r222832 + r222833;
        double r222835 = 2.0;
        double r222836 = r222834 / r222835;
        return r222836;
}

double f(double x, double y) {
        double r222837 = y;
        double r222838 = x;
        double r222839 = r222837 + r222838;
        double r222840 = 2.0;
        double r222841 = r222839 / r222840;
        return r222841;
}

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{y + x}{2}\]

Reproduce

herbie shell --seed 2019174 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  (/ (+ x y) 2.0))