Average Error: 0.0 → 0.0
Time: 3.1s
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 r10294861 = x;
        double r10294862 = y;
        double r10294863 = 500.0;
        double r10294864 = r10294862 / r10294863;
        double r10294865 = r10294861 + r10294864;
        return r10294865;
}

double f(double x, double y) {
        double r10294866 = y;
        double r10294867 = 500.0;
        double r10294868 = r10294866 / r10294867;
        double r10294869 = x;
        double r10294870 = r10294868 + r10294869;
        return r10294870;
}

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