Average Error: 0.0 → 0.0
Time: 6.3s
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 r31054765 = x;
        double r31054766 = y;
        double r31054767 = 500.0;
        double r31054768 = r31054766 / r31054767;
        double r31054769 = r31054765 + r31054768;
        return r31054769;
}

double f(double x, double y) {
        double r31054770 = x;
        double r31054771 = y;
        double r31054772 = 500.0;
        double r31054773 = r31054771 / r31054772;
        double r31054774 = r31054770 + r31054773;
        return r31054774;
}

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