Average Error: 0.0 → 0.0
Time: 1.8s
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 r8798266 = x;
        double r8798267 = y;
        double r8798268 = 500.0;
        double r8798269 = r8798267 / r8798268;
        double r8798270 = r8798266 + r8798269;
        return r8798270;
}

double f(double x, double y) {
        double r8798271 = y;
        double r8798272 = 500.0;
        double r8798273 = r8798271 / r8798272;
        double r8798274 = x;
        double r8798275 = r8798273 + r8798274;
        return r8798275;
}

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