Average Error: 0.0 → 0.0
Time: 4.6s
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 r11650461 = x;
        double r11650462 = y;
        double r11650463 = 500.0;
        double r11650464 = r11650462 / r11650463;
        double r11650465 = r11650461 + r11650464;
        return r11650465;
}

double f(double x, double y) {
        double r11650466 = y;
        double r11650467 = 500.0;
        double r11650468 = r11650466 / r11650467;
        double r11650469 = x;
        double r11650470 = r11650468 + r11650469;
        return r11650470;
}

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