Average Error: 0.0 → 0.0
Time: 21.4s
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 r10976742 = x;
        double r10976743 = y;
        double r10976744 = 500.0;
        double r10976745 = r10976743 / r10976744;
        double r10976746 = r10976742 + r10976745;
        return r10976746;
}

double f(double x, double y) {
        double r10976747 = y;
        double r10976748 = 500.0;
        double r10976749 = r10976747 / r10976748;
        double r10976750 = x;
        double r10976751 = r10976749 + r10976750;
        return r10976751;
}

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