Average Error: 0 → 0
Time: 912.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 r7116851 = x;
        double r7116852 = y;
        double r7116853 = r7116851 + r7116852;
        double r7116854 = 2.0;
        double r7116855 = r7116853 / r7116854;
        return r7116855;
}

double f(double x, double y) {
        double r7116856 = y;
        double r7116857 = x;
        double r7116858 = r7116856 + r7116857;
        double r7116859 = 2.0;
        double r7116860 = r7116858 / r7116859;
        return r7116860;
}

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