Average Error: 0.0 → 0.0
Time: 5.1s
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 r11095968 = x;
        double r11095969 = y;
        double r11095970 = 500.0;
        double r11095971 = r11095969 / r11095970;
        double r11095972 = r11095968 + r11095971;
        return r11095972;
}

double f(double x, double y) {
        double r11095973 = y;
        double r11095974 = 500.0;
        double r11095975 = r11095973 / r11095974;
        double r11095976 = x;
        double r11095977 = r11095975 + r11095976;
        return r11095977;
}

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)))