Average Error: 0.0 → 0.0
Time: 960.0ms
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 r11855111 = x;
        double r11855112 = y;
        double r11855113 = 500.0;
        double r11855114 = r11855112 / r11855113;
        double r11855115 = r11855111 + r11855114;
        return r11855115;
}

double f(double x, double y) {
        double r11855116 = y;
        double r11855117 = 500.0;
        double r11855118 = r11855116 / r11855117;
        double r11855119 = x;
        double r11855120 = r11855118 + r11855119;
        return r11855120;
}

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