Average Error: 0.0 → 0.0
Time: 4.9s
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 r12026049 = x;
        double r12026050 = y;
        double r12026051 = 500.0;
        double r12026052 = r12026050 / r12026051;
        double r12026053 = r12026049 + r12026052;
        return r12026053;
}

double f(double x, double y) {
        double r12026054 = y;
        double r12026055 = 500.0;
        double r12026056 = r12026054 / r12026055;
        double r12026057 = x;
        double r12026058 = r12026056 + r12026057;
        return r12026058;
}

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