Average Error: 0.0 → 0.0
Time: 3.3s
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 r9464594 = x;
        double r9464595 = y;
        double r9464596 = 500.0;
        double r9464597 = r9464595 / r9464596;
        double r9464598 = r9464594 + r9464597;
        return r9464598;
}

double f(double x, double y) {
        double r9464599 = y;
        double r9464600 = 500.0;
        double r9464601 = r9464599 / r9464600;
        double r9464602 = x;
        double r9464603 = r9464601 + r9464602;
        return r9464603;
}

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