Average Error: 0.0 → 0.0
Time: 827.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 r10781376 = x;
        double r10781377 = y;
        double r10781378 = 500.0;
        double r10781379 = r10781377 / r10781378;
        double r10781380 = r10781376 + r10781379;
        return r10781380;
}

double f(double x, double y) {
        double r10781381 = y;
        double r10781382 = 500.0;
        double r10781383 = r10781381 / r10781382;
        double r10781384 = x;
        double r10781385 = r10781383 + r10781384;
        return r10781385;
}

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