Average Error: 0.0 → 0.0
Time: 3.1s
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 r269135 = x;
        double r269136 = y;
        double r269137 = 500.0;
        double r269138 = r269136 / r269137;
        double r269139 = r269135 + r269138;
        return r269139;
}

double f(double x, double y) {
        double r269140 = x;
        double r269141 = y;
        double r269142 = 500.0;
        double r269143 = r269141 / r269142;
        double r269144 = r269140 + r269143;
        return r269144;
}

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 x + \frac{y}{500}\]

Reproduce

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