Average Error: 0.0 → 0.0
Time: 5.6s
Precision: 64
\[x + \frac{y}{500}\]
\[\frac{y}{500} + x\]
x + \frac{y}{500}
\frac{y}{500} + x
double f(double x, double y) {
        double r9385354 = x;
        double r9385355 = y;
        double r9385356 = 500.0;
        double r9385357 = r9385355 / r9385356;
        double r9385358 = r9385354 + r9385357;
        return r9385358;
}

double f(double x, double y) {
        double r9385359 = y;
        double r9385360 = 500.0;
        double r9385361 = r9385359 / r9385360;
        double r9385362 = x;
        double r9385363 = r9385361 + r9385362;
        return r9385363;
}

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

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

Reproduce

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