Average Error: 0.0 → 0.0
Time: 10.3s
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 r11661071 = x;
        double r11661072 = y;
        double r11661073 = 500.0;
        double r11661074 = r11661072 / r11661073;
        double r11661075 = r11661071 + r11661074;
        return r11661075;
}

double f(double x, double y) {
        double r11661076 = y;
        double r11661077 = 500.0;
        double r11661078 = r11661076 / r11661077;
        double r11661079 = x;
        double r11661080 = r11661078 + r11661079;
        return r11661080;
}

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