Average Error: 0.0 → 0.0
Time: 882.0ms
Precision: 64
\[x + \frac{y}{500.0}\]
\[\frac{y}{500.0} + x\]
x + \frac{y}{500.0}
\frac{y}{500.0} + x
double f(double x, double y) {
        double r15436893 = x;
        double r15436894 = y;
        double r15436895 = 500.0;
        double r15436896 = r15436894 / r15436895;
        double r15436897 = r15436893 + r15436896;
        return r15436897;
}

double f(double x, double y) {
        double r15436898 = y;
        double r15436899 = 500.0;
        double r15436900 = r15436898 / r15436899;
        double r15436901 = x;
        double r15436902 = r15436900 + r15436901;
        return r15436902;
}

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.0

    \[x + \frac{y}{500.0}\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019158 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
  (+ x (/ y 500.0)))