Average Error: 0.0 → 0.0
Time: 7.4s
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 r12145513 = x;
        double r12145514 = y;
        double r12145515 = 500.0;
        double r12145516 = r12145514 / r12145515;
        double r12145517 = r12145513 + r12145516;
        return r12145517;
}

double f(double x, double y) {
        double r12145518 = y;
        double r12145519 = 500.0;
        double r12145520 = r12145518 / r12145519;
        double r12145521 = x;
        double r12145522 = r12145520 + r12145521;
        return r12145522;
}

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