Average Error: 0 → 0
Time: 478.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 r14537738 = x;
        double r14537739 = y;
        double r14537740 = r14537738 + r14537739;
        double r14537741 = 2.0;
        double r14537742 = r14537740 / r14537741;
        return r14537742;
}

double f(double x, double y) {
        double r14537743 = y;
        double r14537744 = x;
        double r14537745 = r14537743 + r14537744;
        double r14537746 = 2.0;
        double r14537747 = r14537745 / r14537746;
        return r14537747;
}

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