Average Error: 0.0 → 0.0
Time: 3.9s
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 r141728 = x;
        double r141729 = y;
        double r141730 = 500.0;
        double r141731 = r141729 / r141730;
        double r141732 = r141728 + r141731;
        return r141732;
}

double f(double x, double y) {
        double r141733 = x;
        double r141734 = y;
        double r141735 = 500.0;
        double r141736 = r141734 / r141735;
        double r141737 = r141733 + r141736;
        return r141737;
}

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