Average Error: 0.0 → 0.0
Time: 10.5s
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 r15295145 = x;
        double r15295146 = y;
        double r15295147 = 500.0;
        double r15295148 = r15295146 / r15295147;
        double r15295149 = r15295145 + r15295148;
        return r15295149;
}

double f(double x, double y) {
        double r15295150 = y;
        double r15295151 = 500.0;
        double r15295152 = r15295150 / r15295151;
        double r15295153 = x;
        double r15295154 = r15295152 + r15295153;
        return r15295154;
}

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