Average Error: 0.0 → 0.0
Time: 4.4s
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 r9707852 = x;
        double r9707853 = y;
        double r9707854 = 500.0;
        double r9707855 = r9707853 / r9707854;
        double r9707856 = r9707852 + r9707855;
        return r9707856;
}

double f(double x, double y) {
        double r9707857 = y;
        double r9707858 = 500.0;
        double r9707859 = r9707857 / r9707858;
        double r9707860 = x;
        double r9707861 = r9707859 + r9707860;
        return r9707861;
}

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