Average Error: 0.0 → 0.0
Time: 6.6s
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 r13150165 = x;
        double r13150166 = y;
        double r13150167 = 500.0;
        double r13150168 = r13150166 / r13150167;
        double r13150169 = r13150165 + r13150168;
        return r13150169;
}

double f(double x, double y) {
        double r13150170 = y;
        double r13150171 = 500.0;
        double r13150172 = r13150170 / r13150171;
        double r13150173 = x;
        double r13150174 = r13150172 + r13150173;
        return r13150174;
}

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