Average Error: 0.0 → 0.0
Time: 3.9s
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 r14803517 = x;
        double r14803518 = y;
        double r14803519 = 500.0;
        double r14803520 = r14803518 / r14803519;
        double r14803521 = r14803517 + r14803520;
        return r14803521;
}

double f(double x, double y) {
        double r14803522 = y;
        double r14803523 = 500.0;
        double r14803524 = r14803522 / r14803523;
        double r14803525 = x;
        double r14803526 = r14803524 + r14803525;
        return r14803526;
}

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