Average Error: 0.0 → 0.0
Time: 9.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 r9631544 = x;
        double r9631545 = y;
        double r9631546 = 500.0;
        double r9631547 = r9631545 / r9631546;
        double r9631548 = r9631544 + r9631547;
        return r9631548;
}

double f(double x, double y) {
        double r9631549 = y;
        double r9631550 = 500.0;
        double r9631551 = r9631549 / r9631550;
        double r9631552 = x;
        double r9631553 = r9631551 + r9631552;
        return r9631553;
}

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