Average Error: 0 → 0
Time: 869.0ms
Precision: 64
\[\frac{x + y}{2.0}\]
\[\frac{y + x}{2.0}\]
\frac{x + y}{2.0}
\frac{y + x}{2.0}
double f(double x, double y) {
        double r6609821 = x;
        double r6609822 = y;
        double r6609823 = r6609821 + r6609822;
        double r6609824 = 2.0;
        double r6609825 = r6609823 / r6609824;
        return r6609825;
}

double f(double x, double y) {
        double r6609826 = y;
        double r6609827 = x;
        double r6609828 = r6609826 + r6609827;
        double r6609829 = 2.0;
        double r6609830 = r6609828 / r6609829;
        return r6609830;
}

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.0}\]
  2. Final simplification0

    \[\leadsto \frac{y + x}{2.0}\]

Reproduce

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