Average Error: 0.0 → 0.0
Time: 2.9s
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 r16704319 = x;
        double r16704320 = y;
        double r16704321 = 500.0;
        double r16704322 = r16704320 / r16704321;
        double r16704323 = r16704319 + r16704322;
        return r16704323;
}

double f(double x, double y) {
        double r16704324 = y;
        double r16704325 = 500.0;
        double r16704326 = r16704324 / r16704325;
        double r16704327 = x;
        double r16704328 = r16704326 + r16704327;
        return r16704328;
}

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