Average Error: 0.0 → 0.0
Time: 10.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 r13174580 = x;
        double r13174581 = y;
        double r13174582 = 500.0;
        double r13174583 = r13174581 / r13174582;
        double r13174584 = r13174580 + r13174583;
        return r13174584;
}

double f(double x, double y) {
        double r13174585 = y;
        double r13174586 = 500.0;
        double r13174587 = r13174585 / r13174586;
        double r13174588 = x;
        double r13174589 = r13174587 + r13174588;
        return r13174589;
}

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