Average Error: 0.0 → 0.0
Time: 7.0s
Precision: 64
\[x + \frac{y}{500}\]
\[x + \frac{y}{500}\]
x + \frac{y}{500}
x + \frac{y}{500}
double f(double x, double y) {
        double r176180 = x;
        double r176181 = y;
        double r176182 = 500.0;
        double r176183 = r176181 / r176182;
        double r176184 = r176180 + r176183;
        return r176184;
}

double f(double x, double y) {
        double r176185 = x;
        double r176186 = y;
        double r176187 = 500.0;
        double r176188 = r176186 / r176187;
        double r176189 = r176185 + r176188;
        return r176189;
}

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. Simplified0.0

    \[\leadsto \color{blue}{\frac{y}{500} + x}\]
  3. Final simplification0.0

    \[\leadsto x + \frac{y}{500}\]

Reproduce

herbie shell --seed 2019195 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, C"
  (+ x (/ y 500.0)))