Average Error: 0.0 → 0.0
Time: 5.1s
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 r13430203 = x;
        double r13430204 = y;
        double r13430205 = 500.0;
        double r13430206 = r13430204 / r13430205;
        double r13430207 = r13430203 + r13430206;
        return r13430207;
}

double f(double x, double y) {
        double r13430208 = y;
        double r13430209 = 500.0;
        double r13430210 = r13430208 / r13430209;
        double r13430211 = x;
        double r13430212 = r13430210 + r13430211;
        return r13430212;
}

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