Average Error: 0.0 → 0.0
Time: 1.0s
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 r9850825 = x;
        double r9850826 = y;
        double r9850827 = 500.0;
        double r9850828 = r9850826 / r9850827;
        double r9850829 = r9850825 + r9850828;
        return r9850829;
}

double f(double x, double y) {
        double r9850830 = y;
        double r9850831 = 500.0;
        double r9850832 = r9850830 / r9850831;
        double r9850833 = x;
        double r9850834 = r9850832 + r9850833;
        return r9850834;
}

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