Average Error: 0.0 → 0.0
Time: 2.7s
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 r5514382 = x;
        double r5514383 = y;
        double r5514384 = 500.0;
        double r5514385 = r5514383 / r5514384;
        double r5514386 = r5514382 + r5514385;
        return r5514386;
}

double f(double x, double y) {
        double r5514387 = y;
        double r5514388 = 500.0;
        double r5514389 = r5514387 / r5514388;
        double r5514390 = x;
        double r5514391 = r5514389 + r5514390;
        return r5514391;
}

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 2019156 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
  (+ x (/ y 500.0)))