Average Error: 0.0 → 0.0
Time: 3.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 r11954391 = x;
        double r11954392 = y;
        double r11954393 = 500.0;
        double r11954394 = r11954392 / r11954393;
        double r11954395 = r11954391 + r11954394;
        return r11954395;
}

double f(double x, double y) {
        double r11954396 = y;
        double r11954397 = 500.0;
        double r11954398 = r11954396 / r11954397;
        double r11954399 = x;
        double r11954400 = r11954398 + r11954399;
        return r11954400;
}

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